Mar 6, 2017
0
Level 2
Event listen for lumen log
Hello,
I'm fairly new to Lumen/Laravel so baer with me :)
I'm trying to use Events to listen for any writing to the log file.
Event::listen('illuminate.log', function()
{
// Log was written to
});
however this doesn't s seem to work. I tried listening with wildcard to see what events are fired, and I get all sorts of events, but not any log related
Event::listen('*', function()
{
// Lots of events
});
Am I doing this the wrong way? I have my own listeners and events and those are working just fine.
Thx in advance
Please or to participate in this conversation.