You are here

function mymodule_stream_handler_loader in Monolog 6

Same name and namespace in other branches
  1. 7 monolog.api.php \mymodule_stream_handler_loader()

Example loader callback.

Loader callbacks instantiate the handler class.

Parameters

array $options: The configuration options set for this handler.

Return value

HandlerInterface

See also

hook_monolog_handler_info()

File

./monolog.api.php, line 116
Hooks provided by the Composer Manager module.

Code

function mymodule_stream_handler_loader($options) {
  return new StreamHandler($options['filepath'], $options['level']);
}