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);
77 $replacements =
array($this->processname, $levelName);
78 $string = str_replace(
$formats, $replacements, $string);
79 $string = preg_replace(
'/%\w+(\{[^\}]+\})?/',
'', $string);
80 $string = trim($string);
setLogFormat($format)
Set the format desired for the logs.
log($level, $string)
Log a message to syslog.
__construct(\SimpleSAML_Configuration $config)
ErrorLogLoggingHandler constructor.
static $levelNames
This array contains the mappings from syslog log level to names.
Create styles array
The data for the language used.
getString($name, $default=self::REQUIRED_OPTION)
This function retrieves a string configuration option.