function monolog_gelf_handler_settings in Monolog 7
Same name and namespace in other branches
- 6 handlers/gelf.inc \monolog_gelf_handler_settings()
Monolog settings form; Settings for the GelfHandler handler.
File
- handlers/
gelf.inc, line 26 - Handler include for FirePHPHandler.
Code
function monolog_gelf_handler_settings(&$form, &$form_state, $profile, array $handler) {
$form['hostname'] = array(
'#title' => t('Hostname'),
'#type' => 'textfield',
'#default_value' => $handler['hostname'],
'#description' => t('The hostname of the Graylog2 server.'),
'#required' => TRUE,
);
$form['port'] = array(
'#title' => t('Port'),
'#type' => 'textfield',
'#default_value' => $handler['port'],
'#description' => t('The port that the server is listening on.'),
'#required' => TRUE,
'#size' => 6,
);
$form['chunk_size'] = array(
'#title' => t('Chunk size'),
'#type' => 'textfield',
'#default_value' => $handler['chunk_size'],
'#description' => t('The size of chunked messages in bytes. This allows larger messages to be broken up into smaller pieces.'),
'#required' => TRUE,
'#size' => 6,
);
}