Laravel ships with Monolog as far as I can remember, go ahead and check that out. Monolog is really flexible and gives you a ton of control.
If you want to use Monolog's advanced features, I assume you can just do it out of the box as advertised:
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
$view_log = new Logger('View Logs');
$view_log->pushHandler(new StreamHandler('path/to/log.log', Logger::INFO));
$view_log->addInfo("User $user clicked");
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community