samedi 26 décembre 2015

How can i set custom log file and custom log lavel in laravel 5.1?

I'm using Laravel 5.1 and trying to set different logging file with different logging level For example: I want to set log for sending mail

Log::mail('Mail is successfully sent to : '.$user);

And this mail log, i want save in separate log file For example:

storage/logs/mail-log.log

what would be the best approach?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire