Unable to extend to Default Log Type laravel. #309
Replies: 2 comments
-
@DrianeDiojanPerez hey! Extending Laravel logs is a bit tricky at the moment, I just realised I didn't have extendability in mind when first creating Laravel log parser. If you look at the original Laravel parser here, and the Regex it actually ends up using, it's quite different from the rest of the log parsers (which are usually simpler and single-line). My suggestion - extend the Otherwise, if you're feeling brave, then you should still extend the Let me know how it goes! |
Beta Was this translation helpful? Give feedback.
-
How to extend log files? Doc https://log-viewer.opcodes.io/docs/3.x/log-types/custom not helped.
My custom log shown in Select but NOT load file! Regexp tested with string: |
Beta Was this translation helpful? Give feedback.
-
I'm trying to extend the Laravel type to include method, route, user id, and email but it returns them as empty.
App/Provider/AppServiceProvider
My Custom Log Class:
LogView
the $match return
My regex:
https://regexr.com/7pnmb
and My logs:
Beta Was this translation helpful? Give feedback.
All reactions