# Voir doc/logging.md monolog: handlers: # sorties standards (stdout, stderr, console) stderr: type: stream path: php://stderr level: error channels: ["!event", "!doctrine"] console: type: console process_psr_3_messages: false level: debug channels: ["!event", "!doctrine", "!console"] # email en cas d'erreurs critiques, sauf erreurs 404 / 405 # critical: # type: fingers_crossed # action_level: critical # excluded_http_codes: [ 404, 405 ] # handler: deduplicated # deduplicated: # type: deduplication # handler: mailer # mailer: # type: swift_mailer # from_email: "process@opentalent.fr" # to_email: "exploitation@opentalent.fr" # subject: AP2I - Critical Error Occurred # level: critical # formatter: monolog.formatter.html # content_type: text/html # logging fichier file_main: type: rotating_file path: "%kernel.logs_dir%/%kernel.environment%/%kernel.environment%.main.log" level: debug max_files: 3 channels: [php, doctrine, http_client, elastica] file_auth: type: rotating_file path: "%kernel.logs_dir%/%kernel.environment%.auth.log" level: debug max_files: 3 channels: security # logs spécifiques à certains process cron: type: group members: [cron_file] cron_file: type: rotating_file path: "%kernel.logs_dir%/%kernel.environment%.cron.log" level: debug max_files: 7 channels: cron # cron_critical: # type: fingers_crossed # action_level: critical # handler: cron_swift # cron_swift: # type: swift_mailer # from_email: "process@opentalent.fr" # to_email: "exploitation@opentalent.fr" # subject: Critical Error Occurred # level: error # formatter: monolog.formatter.html # content_type: text/html # logs spécifiques au service de synchro dolibarr dolibarrsync: type: rotating_file path: "%kernel.logs_dir%/%kernel.environment%.dolibarrsync.log" level: debug max_files: 7 channels: dolibarrsync # 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