Support the ongoing development of →
Configuration IOC
Last updated 2 years ago.

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 2 years ago.

Sign in to participate in this thread!


Your banner here too?

tzookb tzookb Joined 9 Feb 2014


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

Your logo here?

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

© 2024 - All rights reserved.