-
Notifications
You must be signed in to change notification settings - Fork 1
/
logging.yaml
31 lines (25 loc) · 1022 Bytes
/
logging.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
parameters:
social_data.console.logger.options:
format: "[%%datetime%%] %%level_name%%: %%start_tag%%%%message%%%%end_tag%% %%extra%%\n"
services:
_defaults:
autowire: true
autoconfigure: true
public: false
SocialDataBundle\Logger\ProviderContextConsoleProcessor:
tags:
- { name: monolog.processor, handler: social_data_console_logging }
SocialDataBundle\Logger\LoggerInterface: '@SocialDataBundle\Logger\Logger'
SocialDataBundle\Logger\Logger:
tags:
- { name: monolog.logger, channel: social_data }
social_data.log.db_entry_handler:
class: SocialDataBundle\Logger\MonologEntryHandler
calls:
- [setLogManager, ['@SocialDataBundle\Manager\LogManagerInterface']]
arguments:
$level: 'info'
social_data.log.formatter.console.provider:
class: Symfony\Bridge\Monolog\Formatter\ConsoleFormatter
arguments:
- '%social_data.console.logger.options%'