You are here

function monolog_rotating_file_handler_loader in Monolog 7

Same name and namespace in other branches
  1. 6 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']);
}