-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathos2web_logging.services.yml
More file actions
24 lines (23 loc) · 978 Bytes
/
os2web_logging.services.yml
File metadata and controls
24 lines (23 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
parameters:
monolog.channel_handlers:
# If not specified use the default handlers.
default: ['os2web_logging_watchdog', 'drupal.dblog']
# Log php channel to web server's error log.
php: ['error_log']
os2web_logging.access_log: ['os2web_logging_access_log_file', 'drupal.os2web_logging_access_log_dblog']
services:
monolog.handler.os2web_logging_watchdog:
class: Monolog\Handler\RotatingFileHandler
arguments: ['../logs/os2web_logging_watchdog.log', 60, 'DEBUG']
monolog.handler.os2web_logging_access_log_file:
class: Monolog\Handler\RotatingFileHandler
arguments: ['../logs/os2web_logging_access_log.log', 60, 'DEBUG']
logger.os2web_logging_access_log_dblog:
class: Drupal\os2web_logging\Logger\AccessLogsDbLog
tags:
- { name: logger }
os2web_logging.node_access_event_subscriber:
class: Drupal\os2web_logging\EventSubscriber\NodeAccessEventSubscriber
arguments: []
tags:
- {name: event_subscriber}