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