function monolog_rotating_file_handler_loader in Monolog 6
Same name and namespace in other branches
- 7 handlers/rotating_file.inc \monolog_rotating_file_handler_loader()
Monolog loader callback; Loads a RotatingFileHandler handler.
Return value
HandlerInterface
File
- handlers/
rotating_file.inc, line 15 - Handler include for StreamHandler.
Code
function monolog_rotating_file_handler_loader($options) {
$directory = dirname($options['filepath']);
monolog_prepare_log_dir($directory);
return new RotatingFileHandler($options['filepath'], $options['max_files'], $options['level'], $options['bubble']);
}