Skip to content

Instantly share code, notes, and snippets.

@gmalato
Last active April 1, 2023 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmalato/553727b025d000fd49b59579c8c8a824 to your computer and use it in GitHub Desktop.
Save gmalato/553727b025d000fd49b59579c8c8a824 to your computer and use it in GitHub Desktop.
LNAV formatter for Codeigniter
{
"CI" : {
"body-field": "body",
"description": "gmalato@hotmail.com | LNAV format for CodeIgniter logs",
"file-pattern": "log-(.*)\\.php",
"level": {
"debug": "DEBUG",
"error": "ERROR",
"info": "INFO"
},
"level-field": "level",
"regex": {
"log_message" : {
"pattern" : "^(?<level>.*)\\s-\\s(?<timestamp>.{19})\\s-->\\s(?<body>.*)$"
}
},
"sample": [
{ "line" : "INFO - 2017-03-21 21:47:07 --> Final output sent to browser" }
],
"timestamp-field": "timestamp",
"title": "CodeIgniter"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment