You are here

function monolog_stream_handler_loader in Monolog 7

Same name and namespace in other branches
  1. 6 handlers/stream.inc \monolog_stream_handler_loader()

Monolog loader callback; Loads a StreamHandler handler.

Return value

HandlerInterface

File

handlers/stream.inc, line 15
Handler include for StreamHandler include.

Code

function monolog_stream_handler_loader($options) {
  $directory = dirname($options['filepath']);
  monolog_prepare_log_dir($directory);
  return new StreamHandler($options['filepath'], $options['level'], $options['bubble']);
}