I'm quite new to laravel 4
, and I want to log to files inside storage/logs
when a user
attempt to connect to my application.
I have added inside routes.php
this:
Event::listen('auth.attempt', function() {
echo 'attempting to logging in';
});
I know that Laravel 4
includes monolog
which is a PHP logging framework , but I dont know if it's the easiest way to log here.
I can declare a filter
that I add to the before
of my route
, but this solution isn't very elegant.