While I worked on a Laravel-Zero app this week I was facing an issue with integrating Bugsnag because of some binding issues with the Log class.
While I was struggling, I came up with the idea to implement a logging channel that directly logs to github and creates issues for me. That way I don't need any third party App integration, but my Team mates can still check out the stack trace and react to possible bugs.
Turns out you can use a custom class to create your own Monolog handler. A little more digging and I found there is a dedicated Formatter class that I can use for my handler.
I remembered @aarondfrancis recently created his Solo project where he did some cleanup with the code. So I went further and applied the same logic to my formatter.
#Laravel #PHP #opensource
Back
•
In response to @KrishanK
Check it out: github.com/Naoray/laravel-github-monolog
💻