privoxy-log-parser: Highlight: "Evaluating tag 'change-tor-socks-port' for client...
authorFabian Keil <fk@fabiankeil.de>
Fri, 12 Feb 2021 20:46:26 +0000 (21:46 +0100)
committerFabian Keil <fk@fabiankeil.de>
Sun, 21 Feb 2021 15:09:20 +0000 (16:09 +0100)
tools/privoxy-log-parser.pl

index 4d0ba2e..482edf9 100755 (executable)
@@ -1272,6 +1272,14 @@ sub handle_loglevel_tagging($) {
         $c =~ s@(?<=expired )(\d+)@$h{'Number'}$1$h{'Standard'}@;
         $c = highlight_matched_host($c, '(?<=client )[^\s]+');
 
+    } elsif ($c =~ /^Evaluating/) {
+
+        # Evaluating tag 'change-tor-socks-port' for client 127.0.0.1. End of life 1613162302.
+
+        $c =~ s@(?<=tag \')([^\']*)@$h{'tag'}$1$h{'Standard'}@;
+        $c = highlight_matched_host($c, '(?<=client )[^\s]+(?=\.)');
+        $c =~ s@(?<=life )(\d+)@$h{'Number'}$1$h{'Standard'}@;
+
     } elsif ($c =~ /^Client tag/) {
 
         # Client tag 'forward-directly' matches