From 743ebdeae094adf740ebb495ee4f391602083cab Mon Sep 17 00:00:00 2001 From: Guy Halse <guy@tenet.ac.za> Date: Thu, 10 Jan 2019 09:04:48 +0200 Subject: [PATCH] Allow StandardErrorLoggingHandler to be used --- config-templates/config.php | 4 ++-- lib/SimpleSAML/Logger.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config-templates/config.php b/config-templates/config.php index aa1cede4b..6d9c71b8c 100644 --- a/config-templates/config.php +++ b/config-templates/config.php @@ -264,7 +264,7 @@ $config = [ * * Choose logging handler. * - * Options: [syslog,file,errorlog] + * Options: [syslog,file,errorlog,stderr] * */ 'logging.level' => SimpleSAML\Logger::NOTICE, @@ -800,7 +800,7 @@ $config = [ * \SimpleSAML\XHTML\TemplateControllerInterface interface to use it. */ //'theme.controller' => '', - + /* * Templating options * diff --git a/lib/SimpleSAML/Logger.php b/lib/SimpleSAML/Logger.php index c18276ec0..f0befad0d 100644 --- a/lib/SimpleSAML/Logger.php +++ b/lib/SimpleSAML/Logger.php @@ -356,6 +356,7 @@ class Logger 'syslog' => 'SimpleSAML\Logger\SyslogLoggingHandler', 'file' => 'SimpleSAML\Logger\FileLoggingHandler', 'errorlog' => 'SimpleSAML\Logger\ErrorLogLoggingHandler', + 'stderr' => 'SimpleSAML\Logger\StandardErrorLoggingHandler', ]; // get the configuration -- GitLab