function monolog_logging_get_contexts in Monolog 6
Same name and namespace in other branches
- 7 modules/monolog_logging/monolog_logging.module \monolog_logging_get_contexts()
Returns the selected event contexts.
Return value
array
1 call to monolog_logging_get_contexts()
- monolog_logging_watchdog in modules/
monolog_logging/ monolog_logging.module - Implements hook_watchdog().
File
- modules/
monolog_logging/ monolog_logging.module, line 165 - Integrates Drupal's internal logging system with Monolog by routing watchdog messages to Monolog channels.
Code
function monolog_logging_get_contexts() {
static $contexts = array();
if (!$contexts) {
$contexts = array_filter(variable_get('monolog_logging_contexts', array(
'uid' => 'uid',
'request_uri' => 'request_uri',
'referer' => 'referer',
'ip' => 'ip',
'link' => 'link',
)));
}
return $contexts;
}