laravel-log-viewer
laravel-log-viewer copied to clipboard
Added a level filter
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.
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.

Hey @rap2hpoutre Can we merge this PR? This is very useful for filtering the logs.
Please merge this commit, it's useful
@joshuasmall @rap2hpoutre Please merge this, It's a very useful commit!
Please merge this commit!
Guys, don't loose your time asking for a merge, its never gonna arrive. Just put error in the search input and magic👍
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...
Good luck then