G
G
Glory2022-03-26 20:15:00
Laravel
Glory, 2022-03-26 20:15:00

Is it possible to make logging of all mysql queries so that log files are created daily?

we have too big sql query logging file. In a few days, 40-50 gigs are typed. At the same time, executed requests get into the logs, but instead of the transferred values, a question mark "?"

Is it possible to set up logging of this channel in Laravel so that a log with a new file is created every day and to see the request in full - along with the parameters passed to the request?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Plisko, 2022-03-26
@AmdY

You can log without problems yourself https://laravel.com/docs/9.x/database#listening-fo...
It is worth looking for a ready-made package that already has all the required functionality.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question