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

SimpleSAML_Logger: Remove old (commented out) logger class.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1669 44740490-163a-0410-bde0-09ae8108e29a
parent a993b753
No related branches found
No related tags found
No related merge requests found
...@@ -213,44 +213,3 @@ class SimpleSAML_Logger { ...@@ -213,44 +213,3 @@ class SimpleSAML_Logger {
return self::$trackid; return self::$trackid;
} }
} }
/*
class SimpleSAML_Logger {
private $configuration = null;
private $loglevel = LOG_NOTICE;
public function __construct() {
$this->configuration = SimpleSAML_Configuration::getInstance();
$this->loglevel = $this->configuration->getValue('logging.level');
define_syslog_variables();
openlog("simpleSAMLphp", LOG_PID, $this->configuration->getValue('logging.facility') );
}
public function log($priority, $trackid = null, $module, $submodule, $eventtype, $content, $message) {
if ($priority > $this->loglevel) return;
if ($trackid == null) {
$trackid = 'na';
}
$contentstring = '';
if (is_array($content)) {
$contentstring = implode('|', $content);
} else {
$contentstring = $content;
}
$logstring = implode(',', array($priority, $trackid, $module, $submodule, $eventtype, $contentstring, $message));
syslog($priority, " OLD ".$logstring);
}
}
*/
?>
\ No newline at end of file
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