Mercurial > prosody-modules
comparison misc/lnav/prosody.json @ 5497:1be6e375a7c2
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 31 May 2023 18:04:30 +0200 |
parents | 3e6d1e248dc1 |
children |
comparison
equal
deleted
inserted
replaced
5496:3e6d1e248dc1 | 5497:1be6e375a7c2 |
---|---|
12 "level-field" : "loglevel", | 12 "level-field" : "loglevel", |
13 "multiline" : false, | 13 "multiline" : false, |
14 "ordered-by-time" : true, | 14 "ordered-by-time" : true, |
15 "regex" : { | 15 "regex" : { |
16 "standard" : { | 16 "standard" : { |
17 "pattern" : "^(?<timestamp>\\w{3} \\d{2} \\d{2}:\\d{2}:\\d{2})\\s+(?<loggername>\\S+)\\s+(?<loglevel>debug|info|warn|error)\\s+(?<message>.+)$" | 17 "pattern" : "^(?<timestamp>\\w{3} \\d{2} \\d{2}:\\d{2}:\\d{2}\\s+)(?<loggername>\\S+)\\s+(?<loglevel>debug|info|warn|error)\\s+(?<message>.+)$" |
18 } | 18 } |
19 }, | 19 }, |
20 "sample" : [ | 20 "sample" : [ |
21 { | 21 { |
22 "line" : "Jan 31 11:07:34 c2s565063fff480\tinfo\tClient connected" | 22 "line" : "Jan 31 11:07:34 c2s565063fff480\tinfo\tClient connected" |