Yes, putting Log::info() in production can be useful in some cases. It all depends what kind of data you want to collect.
May 29, 2019
2
Level 1
Logging in laravel
My use case is logging some info for every request .in my application.How does laravel logging works in terms of performance?.I am currently using a queue and inside the handle i write log to a file as follows:
\Log::channel('BrowsingLogs')->info($this->single_log);
i am thinking of using redis as a buffer and then write to disk every X request to avoid IO issue but it may be overkill.Also is it a good practice to put Log::info in production?
Please or to participate in this conversation.