You are here

function theme_syslog_format in Drupal 6

Format a system log entry.

Related topics

1 theme call to theme_syslog_format()
syslog_watchdog in modules/syslog/syslog.module

File

modules/syslog/syslog.module, line 101

Code

function theme_syslog_format($entry) {
  global $base_url;
  $message = $base_url;
  $message .= '|' . $entry['timestamp'];
  $message .= '|' . $entry['type'];
  $message .= '|' . $entry['ip'];
  $message .= '|' . $entry['request_uri'];
  $message .= '|' . $entry['referer'];
  $message .= '|' . $entry['user']->uid;
  $message .= '|' . strip_tags($entry['link']);
  $message .= '|' . strip_tags(is_null($entry['variables']) ? $entry['message'] : strtr($entry['message'], $entry['variables']));
  return $message;
}