From 5f6a454734313fc83311ca81b4ad7b294438ddd3 Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 8 Mar 2012 03:39:48 +0000 Subject: [PATCH] importance as a number is silly, and section is implied by the context of the description --- contrib/log_net/main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/log_net/main.php b/contrib/log_net/main.php index a35ea54a..a623b50e 100644 --- a/contrib/log_net/main.php +++ b/contrib/log_net/main.php @@ -12,8 +12,9 @@ class LogNet extends Extension { global $user; if($event->priority > 10) { + // TODO: colour based on event->priority $username = ($user && $user->name) ? $user->name : "Anonymous"; - $str = sprintf("%2d %15s (%s): %s - %s", $event->priority, $_SERVER['REMOTE_ADDR'], $username, $event->section, $event->message); + $str = sprintf("%15s (%s): %s", $_SERVER['REMOTE_ADDR'], $username, $event->message); system("echo ".escapeshellarg($str)." | nc -q 0 localhost 5000"); } }