Files
symfony-flex-recipes/archived/symfony.monolog-bundle/ced40c33b031ead6d0845c8fdf771f1378c8f3bf.json
T
github-action[bot]andgithub-action[bot] a5298a919f Update Flex archives
2021-12-18 17:20:12 +00:00

98 lines
4.3 KiB
JSON

{
"manifests": {
"symfony/monolog-bundle": {
"manifest": {
"bundles": {
"Symfony\\Bundle\\MonologBundle\\MonologBundle": [
"all"
]
},
"copy-from-recipe": {
"etc/": "%ETC_DIR%/"
}
},
"files": {
"etc/packages/dev/monolog.php": {
"contents": [
"<?php",
"",
"use Symfony\\Component\\Config\\Resource\\ClassExistenceResource;",
"use Symfony\\Component\\Console\\Application;",
"",
"$handlers = [",
" 'main' => [",
" 'type' => 'stream',",
" 'path' => '%kernel.logs_dir%/%kernel.environment%.log',",
" 'level' => 'debug',",
" 'channels' => ['!event'],",
" ],",
" // uncomment to get logging in your browser",
" // you may have to allow bigger header sizes in your Web server configuration",
" //'firephp' => [",
" // 'type' => 'firephp',",
" // 'level' => 'info',",
" //],",
" //'chromephp' => [",
" // 'type' => 'chromephp',",
" // 'level' => 'info',",
" //],",
"];",
"",
"$container->addResource(new ClassExistenceResource(Application::class));",
"if (class_exists(Application::class)) {",
" $handlers['console'] = [",
" 'type' => 'console',",
" 'process_psr_3_messages' => false,",
" 'channels' => ['!event', '!doctrine', '!console'],",
" ];",
"}",
"",
"$container->loadFromExtension('monolog', [",
" 'handlers' => $handlers,",
"]);",
""
],
"executable": false
},
"etc/packages/prod/monolog.php": {
"contents": [
"<?php",
"",
"use Symfony\\Component\\Config\\Resource\\ClassExistenceResource;",
"use Symfony\\Component\\Console\\Application;",
"",
"$handlers = [",
" 'main' => [",
" 'type' => 'fingers_crossed',",
" 'action_level' => 'error',",
" 'handler' => 'nested',",
" ],",
" 'nested' => [",
" 'type' => 'stream',",
" 'path' => '%kernel.logs_dir%/%kernel.environment%.log',",
" 'level' => 'debug',",
" ],",
"];",
"",
"$container->addResource(new ClassExistenceResource(Application::class));",
"if (class_exists(Application::class)) {",
" $handlers['console'] = [",
" 'type' => 'console',",
" 'process_psr_3_messages' => false,",
" 'channels' => ['!event', '!doctrine'],",
" ];",
"}",
"",
"$container->loadFromExtension('monolog', [",
" 'handlers' => $handlers,",
"]);",
""
],
"executable": false
}
},
"ref": "ced40c33b031ead6d0845c8fdf771f1378c8f3bf"
}
}
}