misc/lnav: Fix delimiting of timestamp in pattern
authorKim Alvefur <zash@zash.se>
Wed, 31 May 2023 18:04:30 +0200
changeset 5501 1be6e375a7c2
parent 5500 3e6d1e248dc1
child 5502 1fa1545ebc40
misc/lnav: Fix delimiting of timestamp in pattern The string with the timestamp format in core.loggingmanager does end with a space, so having the exact same string here is nice, but the pattern did not reflect this.
misc/lnav/prosody.json
--- a/misc/lnav/prosody.json	Wed May 31 17:59:56 2023 +0200
+++ b/misc/lnav/prosody.json	Wed May 31 18:04:30 2023 +0200
@@ -14,7 +14,7 @@
       "ordered-by-time" : true,
       "regex" : {
          "standard" : {
-            "pattern" : "^(?<timestamp>\\w{3} \\d{2} \\d{2}:\\d{2}:\\d{2})\\s+(?<loggername>\\S+)\\s+(?<loglevel>debug|info|warn|error)\\s+(?<message>.+)$"
+            "pattern" : "^(?<timestamp>\\w{3} \\d{2} \\d{2}:\\d{2}:\\d{2}\\s+)(?<loggername>\\S+)\\s+(?<loglevel>debug|info|warn|error)\\s+(?<message>.+)$"
          }
       },
       "sample" : [