You are here

function monolog_syslogudp_handler_settings in Monolog 7

Monolog settings form; Settings for the SyslogUdpHandler handler.

File

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

Code

function monolog_syslogudp_handler_settings(&$form, &$form_state, $profile, array $handler) {
  $form['host'] = array(
    '#title' => t('Host'),
    '#type' => 'textfield',
    '#required' => TRUE,
    '#default_value' => $handler['host'],
  );
  $form['port'] = array(
    '#title' => t('Port'),
    '#type' => 'textfield',
    '#default_value' => $handler['port'],
    '#description' => t('Defaults to 514 if not set.'),
  );
}