You are here

function monolog_syslogudp_handler_loader in Monolog 7

Monolog loader callback; Loads a SyslogUdpHandler handler.

Return value

HandlerInterface

File

handlers/syslogudp.inc, line 15
Handler include for SyslogUdpHandler.

Code

function monolog_syslogudp_handler_loader($options) {
  if (!$options['port']) {
    $options['port'] = 514;
  }
  return new SyslogUdpHandler($options['host'], $options['port'], LOG_USER, $options['level'], $options['bubble']);
}