Highlight:
authorFabian Keil <fk@fabiankeil.de>
Sat, 22 Nov 2008 11:56:11 +0000 (11:56 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sat, 22 Nov 2008 11:56:11 +0000 (11:56 +0000)
Created new connection to www.privoxy.org:80 on socket 11.

tools/privoxy-log-parser.pl

index 88ce1d3..9575ba9 100755 (executable)
@@ -8,7 +8,7 @@
 #
 # http://www.fabiankeil.de/sourcecode/privoxy-log-parser/
 #
-# $Id: privoxy-log-parser.pl,v 1.123 2008/11/09 19:21:23 fk Exp $
+# $Id: privoxy-log-parser.pl,v 1.124 2008/11/22 10:02:52 fk Exp $
 #
 # TODO:
 #       - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting
@@ -1423,6 +1423,12 @@ sub handle_loglevel_connect ($) {
     
         $c =~ s@(?<=socks5_connect: )(.*)@$h{'error'}$1$h{'Standard'}@;
 
+    } elsif ($c =~ m/^Created new connection to/) {
+
+        # Created new connection to www.privoxy.org:80 on socket 11.
+        $c = highlight_matched_host($c, '(?<=connection to )[^\s]+');
+        $c =~ s@(?<=on socket )(\d+)@$h{'Number'}$1$h{'Standard'}@;
+
     } elsif ($c =~ m/^Found reusable socket/) {
 
         # Found reusable socket 9 for www.privoxy.org:80 in slot 0.