function theme_errorlog_format in Logging and alerts 6
Same name and namespace in other branches
- 6.2 errorlog/errorlog.module \theme_errorlog_format()
- 7.2 errorlog/errorlog.module \theme_errorlog_format()
- 7 errorlog/errorlog.module \theme_errorlog_format()
1 theme call to theme_errorlog_format()
- errorlog_watchdog in errorlog/
errorlog.module - Implementation of hook_watchdog().
File
- errorlog/
errorlog.module, line 59 - Sends logs and alerts to the web server's log.
Code
function theme_errorlog_format($log_msg = array()) {
global $base_root;
$message = $base_root;
$message .= '|type=' . $log_msg['type'];
$message .= '|ip=' . $log_msg['ip'];
$message .= '|uri=' . $log_msg['request_uri'];
$message .= '|referer=' . $log_msg['referer'];
$message .= '|uid=' . $log_msg['user']->uid;
$message .= '|link=' . strip_tags($log_msg['link']);
$message .= '|message=' . strip_tags(is_null($log_msg['variables']) ? $log_msg['message'] : strtr($log_msg['message'], $log_msg['variables']));
return $message;
}