S
S
Stanislav Pochepko2017-03-22 18:03:17
Laravel
Stanislav Pochepko, 2017-03-22 18:03:17

How to properly organize logging in an application (Laravel)?

Good day to all. I want to ask for advice. There is a small project, but bug tracking has become a very difficult job. Since queues and so on are used. On it there was a question on logging. And it's not clear how to do it right. Actually the technical part is simple, as far as I understand. I inject monolog into services and pull its logging methods there. The question is the following. Is the division into channels by service correct? Notification service - select a separate notification channel and put everything into it. Is it necessary in this case to divide by files for each channel or write everything into one log file and then filter by channel to obtain useful information. Taking into account the fact that there are a lot of DEBUG logs.
In general, I would like to look at logging practices in medium-sized (in size) projects in order to understand how to act in a given situation.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question