Created
April 11, 2018 13:14
-
-
Save styks1987/e127635405394cf3f19e66cfb9c64c68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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