Support the ongoing development of Laravel.io →
Configuration IOC
Last updated 6 months ago.
0

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");
Last updated 6 months ago.
0

Sign in to participate in this thread!

LaraJobs

Your banner here too?

tzookb tzookb Joined 9 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.