function monolog_rotating_file_handler_settings in Monolog 6
Same name and namespace in other branches
- 7 handlers/rotating_file.inc \monolog_rotating_file_handler_settings()
Monolog settings form; Settings for the RotatingFileHandler handler.
File
- handlers/
rotating_file.inc, line 24 - Handler include for StreamHandler.
Code
function monolog_rotating_file_handler_settings(&$form, &$form_state, $profile, array $handler) {
$form['filepath'] = array(
'#title' => t('Log file path'),
'#type' => 'textfield',
'#default_value' => $handler['filepath'],
'#description' => t('The path or URI that the log file will be written to.'),
);
$form['max_files'] = array(
'#title' => t('Maximum number of files'),
'#type' => 'textfield',
'#default_value' => $handler['max_files'],
'#description' => t('The maximal amount of files to keep (0 means unlimited).'),
'#size' => 4,
);
}