function hook_monolog_channel_info in Monolog 7
Same name and namespace in other branches
- 6 monolog.api.php \hook_monolog_channel_info()
Defines monolog channels.
A channel identifies which part of the application a record is related to.
Return value
array An associative array keyed by unique name of the channel. Each channel is an associative array containing:
- label: The human readable name of the channel as displayed in administrative pages.
- description: The description of the channel displayed in administrative pages.
- default profile: The machine readable name of the channel's default logging profile.
1 function implements hook_monolog_channel_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- monolog_logging_monolog_channel_info in modules/
monolog_logging/ monolog_logging.module - Implements hook_monolog_channel_info().
1 invocation of hook_monolog_channel_info()
- monolog_channel_info_load_all in ./
monolog.crud.inc - Loads all channel definitions from hook_monolog_channel_info() implementations.
File
- ./
monolog.api.php, line 31 - Hooks provided by the Composer Manager module.
Code
function hook_monolog_channel_info() {
$channels = array();
$channels['watchdog'] = array(
'label' => t('Watchdog'),
'description' => t('The default channel that watchdog messages are routed through.'),
'default profile' => 'production',
);
return $channels;
}