Working on DevHunter and also building a few packages to help our dev flow.
They’re simple, open-source, and made to fit our needs — easy to maintain and grow with the community.
Will share soon what they do and how they help.
#devcommunity #opensource

44

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.

image

#Laravel #PHP #opensource