Created
October 13, 2015 19:10
-
-
Save mishfit/863442a0085b5f8bf1f2 to your computer and use it in GitHub Desktop.
lnav log format for nlog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nlog_log" : { | |
"title" : "NLog", | |
"description" : "Super simple log format that color codes log entries based on log level", | |
"url" : "http://nlog-project.org", | |
"regex": { | |
"very-basic" : { | |
"pattern" : "^(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{4}) (?<level>\\w+) (?<component>(\\w|\\.)+) - (?<body>.*)$" | |
} | |
}, | |
"level" : { | |
"error" : "^[^123].*" | |
}, | |
"value" : { | |
"component" : { | |
"kind" : "string", | |
"identifier" : true | |
} | |
}, | |
"sample" : [ | |
{ | |
"line" : "2015-10-13 12:43:37.5760 DEBUG Foo.Bar.Baz - Foo logged about stuff happening in Bar " | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment