Support the ongoing development of Laravel.io →
Configuration IOC
Last updated 2 years 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 2 years ago.
0

Sign in to participate in this thread!

Eventy

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.

© 2024 Laravel.io - All rights reserved.