function monolog_socket_handler_settings in Monolog 7
Same name and namespace in other branches
- 6 handlers/socket.inc \monolog_socket_handler_settings()
Monolog settings form; Settings for the StreamHandler handler.
File
- handlers/
socket.inc, line 30 - Handler include for SocketHandler include.
Code
function monolog_socket_handler_settings(&$form, &$form_state, $profile, array $handler) {
$form['connection_string'] = array(
'#title' => t('Socket connection string'),
'#type' => 'textfield',
'#default_value' => $handler['connection_string'],
'#description' => t('The socket connection string, for example <code>unix:///var/log/httpd_app_log.socket</code>.'),
'#required' => TRUE,
);
$form['persistent'] = array(
'#title' => t('Set socket connection to be persistent'),
'#type' => 'checkbox',
'#default_value' => $handler['persistent'],
);
$form['connection_timeout'] = array(
'#title' => t('Connection timeout'),
'#type' => 'textfield',
'#description' => t('The socket connection timeout in seconds.'),
'#default_value' => $handler['connection_timeout'],
'#size' => 5,
);
$form['write_timeout'] = array(
'#title' => t('Write timeout'),
'#type' => 'textfield',
'#description' => t('The socket write timeout in seconds.'),
'#default_value' => $handler['write_timeout'],
'#size' => 5,
);
}