Commit 6bd9bbde authored by Fabien Potencier's avatar Fabien Potencier

Revert "bug #1362 Added monolog.formatter.output and monolog.formatter.dateformat param… (grunch)"

This reverts commit d72829f9, reversing
changes made to 570cffad.
parent d72829f9
...@@ -74,8 +74,8 @@ class MonologServiceProvider implements ServiceProviderInterface, BootableProvid ...@@ -74,8 +74,8 @@ class MonologServiceProvider implements ServiceProviderInterface, BootableProvid
return $log; return $log;
}; };
$app['monolog.formatter'] = function () use ($app) { $app['monolog.formatter'] = function () {
return new LineFormatter($app['monolog.formatter.output'], $app['monolog.formatter.dateformat']); return new LineFormatter();
}; };
$app['monolog.handler'] = $defaultHandler = function () use ($app) { $app['monolog.handler'] = $defaultHandler = function () use ($app) {
...@@ -114,8 +114,6 @@ class MonologServiceProvider implements ServiceProviderInterface, BootableProvid ...@@ -114,8 +114,6 @@ class MonologServiceProvider implements ServiceProviderInterface, BootableProvid
$app['monolog.use_error_handler'] = function ($app) { $app['monolog.use_error_handler'] = function ($app) {
return !$app['debug']; return !$app['debug'];
}; };
$app['monolog.formatter.output'] = "[%datetime%] [%level_name%] %channel% - %message% %context% %extra%\n";
$app['monolog.formatter.dateformat'] = 'Y-m-d H:i:s';
} }
public function boot(Application $app) public function boot(Application $app)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment