Skip to content

Instantly share code, notes, and snippets.

@rjkip
Forked from skowron-line/monolog.json
Last active December 3, 2017 21:56
Show Gist options
  • Save rjkip/e586803c193f71196f5ec79601ef5695 to your computer and use it in GitHub Desktop.
Save rjkip/e586803c193f71196f5ec79601ef5695 to your computer and use it in GitHub Desktop.
lnav Monolog format
{
"monolog": {
"title": "Monolog log file",
"description": "Monolog log format",
"url": "https://github.com/Seldaek/monolog",
"regex": {
"default": {
"pattern": "\\[(?P<timestamp>.*)\\] (?P<logger>.+?).(?P<level>\\w+): (?P<message>[^\\[\\{]+) (?P<context>[\\[\\{].*[\\]\\}]) (?P<extra>[\\[\\{].*[\\]\\}])"
}
},
"level-field" : "level",
"level" : {
"fatal": "EMERGENCY",
"critical": "ALERT|CRITICAL",
"error": "ERROR",
"warning": "WARNING",
"stats": "NOTICE",
"info": "INFO",
"debug": "DEBUG"
},
"value": {
"logger": {
"kind": "string",
"identifier": true
},
"level": {
"kind": "string",
"identifier": true
},
"message": {
"kind": "string"
},
"context": {
"kind": "json"
},
"extra": {
"kind": "json"
}
},
"sample": [
{
"line": "[2015-08-10 15:05:12] event.DEBUG: Notified event \"kernel.terminate\" to listener \"Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener::onKernelTerminate\". [] []"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment