function lagoon_logs_watchdog in Lagoon Logs 7
Implements hook_watchdog()
File
- ./
lagoon_logs.module, line 64
Code
function lagoon_logs_watchdog(array $log_entry) {
if (variable_get('lagoon_logs_enabled', TRUE)) {
if ($log_entry['type'] != LagoonLogger::LAGOON_LOGGER_WATCHDOG_FALLBACK_IDENTIFIER) {
$logger = LagoonLogger::getLogger(variable_get('LAGOON_LOGS_HOST', LagoonLogger::LAGOON_LOGS_DEFAULT_HOST), variable_get('LAGOON_LOGS_PORT', LagoonLogger::LAGOON_LOGS_DEFAULT_PORT), variable_get('LAGOON_LOGS_IDENTIFIER', LagoonLogger::LAGOON_LOGS_DEFAULT_IDENTIFIER));
$logger
->log($log_entry);
}
}
}