potsky / PimpMyLog

🍭 Log viewer for your web server
http://pimpmylog.com
GNU General Public License v3.0
594 stars 89 forks source link

Laravel5 config #122

Open avifatal opened 6 years ago

avifatal commented 6 years ago

Laravel 5 has json context inside, [2017-07-16 08:35:48] local.INFO: the message {"someData":"some data", "more" : {"test" : "true"}}

  1. whats the proper way to devide betwen message and the json context?
  2. is it possible to display the json as formatted json?

this is my regex now: "regex" : "|^\\[(.*)\\] (.*)\\.(.*): (.*)( in (\\/(.*)):([0-9]*))*$|U",

Thanks

potsky commented 6 years ago

Hi !

It seems the delimiter between the message and the payload is the ˋ {` string. You can use this to break both parts. But it will fail if the message contains this delimiter...

There is no Json pretty format now.