23 use Monolog\Handler\SyslogUdpHandler;
64 $level = Logger::DEBUG,
67 parent::__construct( $host, $port, $facility, $level, $bubble );
69 $this->hostname = php_uname(
'n' );
73 $pri = $severity + $this->facility;
79 $timestamp = date(
'M j H:i:s' );
81 return "<{$pri}>{$timestamp} {$this->hostname} {$app}: ";
85 if ( is_array( $message ) ) {
86 $message = implode(
"\n", $message );
89 return preg_split(
'/$\R?^/m', (
string)$message, -1, PREG_SPLIT_NO_EMPTY );
95 $this->logLevels[$record[
'level']],
96 $this->appprefix . $record[
'channel'] );