function monolog_load_handler_include in Monolog 7
Same name and namespace in other branches
- 6 monolog.module \monolog_load_handler_include()
Loads a "handler include" given the handler definition.
Parameters
array $handler_info: The handler's definition whose include file is being loaded.
2 calls to monolog_load_handler_include()
- monolog_handler_form in ./
monolog.admin.inc - Handler settings callback.
- monolog_push_handlers in ./
monolog.module - Pushes handlers onto the stack.
File
- ./
monolog.module, line 273 - A Framework and UI for integrating with the Monolog library.
Code
function monolog_load_handler_include(array $handler_info) {
static $loaded = array();
if ($handler_info['handler file'] && empty($loaded[$handler_info['handler file']])) {
$loaded[$handler_info['handler file']] = TRUE;
if ($handler_info['handler file'] && file_exists($handler_info['handler file'])) {
require $handler_info['handler file'];
}
}
}