Skip to content
Snippets Groups Projects
Commit 09f5614c authored by Olav Morken's avatar Olav Morken
Browse files

Logger: Remove some dead code.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1640 44740490-163a-0410-bde0-09ae8108e29a
parent 0870d3aa
No related branches found
No related tags found
No related merge requests found
...@@ -97,33 +97,18 @@ class SimpleSAML_Logger { ...@@ -97,33 +97,18 @@ class SimpleSAML_Logger {
public static function createLoggingHandler() { public static function createLoggingHandler() {
global $SIMPLESAML_INCPREFIX;
/* Get the configuration. */ /* Get the configuration. */
$config = SimpleSAML_Configuration::getInstance(); $config = SimpleSAML_Configuration::getInstance();
assert($config instanceof SimpleSAML_Configuration); assert($config instanceof SimpleSAML_Configuration);
/* Get the metadata handler option from the configuration. */ /* Get the metadata handler option from the configuration. */
$handler = $config->getValue('logging.handler','syslog'); $handler = $config->getString('logging.handler', 'syslog');
/* /*
* setting minimum log_level * setting minimum log_level
*/ */
self::$logLevel = $config->getValue('logging.level',LOG_INFO); self::$logLevel = $config->getValue('logging.level',LOG_INFO);
/* If 'logging.handler' is NULL or unset, then we want
* to fall back to the default logging handler.
*/
if(is_null($handler)) {
$handler = 'syslog';
}
/* The session handler must be a string. */
if(!is_string($handler)) {
throw new Exception('Invalid setting for the [logging.handler] configuration option. This option should be set to a valid string.');
}
$handler = strtolower($handler); $handler = strtolower($handler);
if($handler === 'syslog') { if($handler === 'syslog') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment