How to specify a separate file for logging INFO in Laravel 5.1?
Any immediate help will be highly appreciable. Thanks
If you would like add another monolog handler, you may use the application's configureMonologUsing method.
Place a call to this method in bootstrap/app.php file right before the $app variable is returned:
$app->configureMonologUsing(function($monolog) {
$monolog->pushHandler(new StreamHandler('path/to/info.log', Logger::INFO, false)); // false value as third argument to disable bubbling up the stack
});
return $app;