Reading the documentation at http://laravel.com/docs/4.2/errors wasn't much help until I twigged that I could manipulate the log object returned by Log::getMonolog();.
Here is an example of adding memory usage to Laravel logs.
In app/start/global.php make the following changes
Log::useFiles(storage_path().'/logs/laravel.log');
$log = Log::getMonolog();
$log->pushProcessor(new Monolog\Processor\MemoryUsageProcessor);
You'll find the Monolog documentation on the repo
Comments
Post a Comment