laravel-log-viewer icon indicating copy to clipboard operation
laravel-log-viewer copied to clipboard

Added a level filter

Open joshuasmall opened this issue 6 years ago • 9 comments

joshuasmall avatar Oct 03 '18 22:10 joshuasmall

Hi, thank you for your contribution. Could you please explain the purpose (and the design choices) of this suggestion? I'm not sure to understand what problem it solves and what it does by reading the code.

rap2hpoutre avatar Oct 04 '18 11:10 rap2hpoutre

Hi, It adds a dropdown allowing you to filter out the log level, I found it useful to view only certain log levels, i.e. errors.

I modified the DataTable dom option here as it allowed me to render the select on the same line as the entries dropdown and the search box.

screenshot 2018-10-04 at 12 50 51

joshuasmall avatar Oct 04 '18 11:10 joshuasmall

Hey @rap2hpoutre Can we merge this PR? This is very useful for filtering the logs.

Please merge this commit, it's useful

bethuxs avatar Aug 30 '19 14:08 bethuxs

@joshuasmall @rap2hpoutre Please merge this, It's a very useful commit!

galdazbiz avatar Sep 24 '19 09:09 galdazbiz

Please merge this commit!

josevavia avatar Dec 27 '19 16:12 josevavia

Guys, don't loose your time asking for a merge, its never gonna arrive. Just put error in the search input and magic👍

tronne avatar Dec 27 '19 17:12 tronne

Guys, don't loose your time asking for a merge, its never gonna arrive. Just put error in the search input and magic

Depending on the messages in the log, this solution does not work... Imagine a message on level "info" with the text "Database started with no errors". The message will appear when searching the "error" string.

That is my particular case, I log every request to my API in debug level, and every request has the word "error" in the url...

josevavia avatar Dec 27 '19 18:12 josevavia

Good luck then

tronne avatar Dec 27 '19 19:12 tronne