From 11fc6054b5fbbb96ca72feaf45d03bbe610157db Mon Sep 17 00:00:00 2001 From: diosmosis Date: Sun, 19 Apr 2015 21:51:18 -0700 Subject: Allow plugins to have environment DI config files. Move all logging DI to Monolog plugin and only use logging in tracker if [Tracker] debug = 1. --- config/environment/cli.php | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 config/environment/cli.php (limited to 'config/environment') diff --git a/config/environment/cli.php b/config/environment/cli.php deleted file mode 100644 index 0db3009ad4..0000000000 --- a/config/environment/cli.php +++ /dev/null @@ -1,29 +0,0 @@ - array( - DI\get('Symfony\Bridge\Monolog\Handler\ConsoleHandler'), - ), - 'Symfony\Bridge\Monolog\Handler\ConsoleHandler' => function (ContainerInterface $c) { - // Override the default verbosity map to make it more verbose by default - $verbosityMap = array( - OutputInterface::VERBOSITY_NORMAL => Logger::INFO, - OutputInterface::VERBOSITY_VERBOSE => Logger::DEBUG, - OutputInterface::VERBOSITY_VERY_VERBOSE => Logger::DEBUG, - OutputInterface::VERBOSITY_DEBUG => Logger::DEBUG, - ); - $handler = new ConsoleHandler(null, true, $verbosityMap); - $handler->setFormatter(new ConsoleFormatter($c->get('log.console.format'), null, true, true)); - return $handler; - }, - 'log.console.format' => '%start_tag%%level_name% %extra.class%[%datetime%]%end_tag% %message%' . PHP_EOL, - -); -- cgit v1.2.3