Skip to content

Instantly share code, notes, and snippets.

@styks1987
Created April 11, 2018 13:14
Show Gist options
  • Save styks1987/e127635405394cf3f19e66cfb9c64c68 to your computer and use it in GitHub Desktop.
Save styks1987/e127635405394cf3f19e66cfb9c64c68 to your computer and use it in GitHub Desktop.
<?php
// Special logs for email tracking
Log::setConfig('emails', function () {
$log = new Logger('emails');
$log->pushHandler(new LogglyHandler('XXXX/tag/emails', Logger::INFO));
return $log;
});
Log::setConfig('jobs', function () {
$log = new Logger('jobs');
$log->pushHandler(new LogglyHandler('XXXX/tag/jobs', Logger::INFO));
return $log;
});
Log::setConfig('listings', function () {
$log = new Logger('listings');
$log->pushHandler(new LogglyHandler('XXXX/tag/listings', Logger::INFO));
return $log;
});
Log::setConfig('inbound_attachments', function () {
$log = new Logger('inbound_attachments');
$log->pushHandler(new LogglyHandler('XXXX/tag/inbound_attachments', Logger::INFO));
return $log;
});
Log::write('info','testing', 'inbound_attachments');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment