diff options
author | diosmosis <benaka@piwik.pro> | 2015-04-20 07:51:18 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-04-20 07:51:18 +0300 |
commit | 11fc6054b5fbbb96ca72feaf45d03bbe610157db (patch) | |
tree | ae4815ea335a7a09654c6ddc43058ffc216811ff /config/environment | |
parent | b347a3bf53849bf01a2416e824db1b19af2c5e9d (diff) |
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.
Diffstat (limited to 'config/environment')
-rw-r--r-- | config/environment/cli.php | 29 |
1 files changed, 0 insertions, 29 deletions
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 @@ -<?php - -use Interop\Container\ContainerInterface; -use Monolog\Logger; -use Symfony\Bridge\Monolog\Formatter\ConsoleFormatter; -use Symfony\Bridge\Monolog\Handler\ConsoleHandler; -use Symfony\Component\Console\Output\OutputInterface; - -return array( - - // Log - 'log.handlers' => 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, - -); |