function monolog_logging_get_contexts in Monolog 7
Same name and namespace in other branches
- 6 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 167 - 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;
}