/** * Build a new logging handler based on syslog. */ public function __construct(\SimpleSAML_Configuration $config) { $facility = $config->getInteger('logging.facility', defined('LOG_LOCAL5') ? constant('LOG_LOCAL5') : LOG_USER); $processname = $config->getString('logging.processname', 'SimpleSAMLphp'); // Setting facility to LOG_USER (only valid in Windows), enable log level rewrite on windows systems if (System::getOS() === System::WINDOWS) { $this->isWindows = true; $facility = LOG_USER; } openlog($processname, LOG_PID, $facility); }