From ae9538f227f66f49c0b3f44063a4f2567f015704 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Thu, 16 Aug 2018 15:46:41 +1200 Subject: [PATCH] FIX SilverStripe debug logs and higher are now routed correctly to syslog (Graylog) --- _config/logging.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 _config/logging.yml diff --git a/_config/logging.yml b/_config/logging.yml new file mode 100644 index 0000000..a7cab75 --- /dev/null +++ b/_config/logging.yml @@ -0,0 +1,13 @@ +--- +Name: cwpcorelogging +After: '#logging' +--- +SilverStripe\Core\Injector\Injector: + Psr\Log\LoggerInterface: + calls: + pushSilverStripeSyslogHandler: [ pushHandler, [ '%$Monolog\Handler\HandlerInterface.silverstripe' ] ] + # Internal error handler, piped to syslog which is routed to Graylog + Monolog\Handler\HandlerInterface.silverstripe: + class: Monolog\Handler\SyslogHandler + constructor: + - 'SilverStripe_log'