47        $this->processname = 
$config->getString(
'logging.processname', 
'SimpleSAMLphp');
 
   68    public function log($level, $string)
 
   70        if (array_key_exists($level, self::$levelNames)) {
 
   71            $levelName = self::$levelNames[$level];
 
   73            $levelName = 
sprintf(
'UNKNOWN%d', $level);
 
   76        $formats = array(
'%process', 
'%level');
 
   77        $replacements = array($this->processname, $levelName);
 
   78        $string = str_replace(
$formats, $replacements, $string);
 
   79        $string = preg_replace(
'/%\w+(\{[^\}]+\})?/', 
'', $string);
 
   80        $string = trim($string);
 
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
static $levelNames
This array contains the mappings from syslog log level to names.
log($level, $string)
Log a message to syslog.
setLogFormat($format)
Set the format desired for the logs.
__construct(\SimpleSAML_Configuration $config)
ErrorLogLoggingHandler constructor.