Skip to content

Instantly share code, notes, and snippets.

View benje's full-sized avatar

Ben Reynhart benje

View GitHub Profile
@benje
benje / lnav_format_python.json
Created October 23, 2017 22:07
Python logging format for Lnav - http://lnav.org/
{
"pythonlogger": {
"title": "Python logger format",
"description": "Log format used by python logger class",
"url": "",
"regex": {
"main" : {
"pattern": "^\\[(?<timestamp>\\d{2}\\\/\\d{2}\\\/\\d{4} \\d{2}:\\d{2}:\\d{2})\\] (?<level>\\w+) (?<module>\\w+) (?<body>.*)$"
}
},