Advance Logging with Laravel and Monolog

Posted 4 years ago by ludo237

Hello everyone.

At the moment my only configuration on Logging events is Log::useDailyFiles(storage_path().'/logs/laravel_main.log');

But I think that I can do more than that. My main goal is to separate logging files for example for Log::info i'll use a file called laravel_info.log for Log::error I'll use a file called laravel_error.log etc.

How can I achieve this with the built-in logging functionality?

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.