Skip to content
Snippets Groups Projects
Commit 13af37a4 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Allow passing as a parameter the logging handler to use in...

Allow passing as a parameter the logging handler to use in SimpleSAML\Logger::createLoggingHandler().
parent 0e007fad
Branches
Tags
No related merge requests found
......@@ -340,7 +340,7 @@ class Logger
}
}
private static function createLoggingHandler()
private static function createLoggingHandler($handler = null)
{
// set to FALSE to indicate that it is being initialized
self::$loggingHandler = false;
......@@ -350,7 +350,9 @@ class Logger
assert($config instanceof \SimpleSAML_Configuration);
// get the metadata handler option from the configuration
$handler = $config->getString('logging.handler', 'syslog');
if (is_null($handler)) {
$handler = $config->getString('logging.handler', 'syslog');
}
// setting minimum log_level
self::$logLevel = $config->getInteger('logging.level', self::INFO);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment