mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
adding a logger for chill
The logger log messages to channel "chill". The name of the service is `chill.main.logger`
This commit is contained in:
@@ -34,6 +34,7 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface
|
||||
|
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.yml');
|
||||
$loader->load('services/logger.yml');
|
||||
}
|
||||
|
||||
public function prepend(ContainerBuilder $container)
|
||||
@@ -82,5 +83,10 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface
|
||||
|
||||
)
|
||||
));
|
||||
|
||||
//add a channel to log app events
|
||||
$container->prependExtensionConfig('monolog', array(
|
||||
'channels' => array('chill')
|
||||
));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user