A
A
Alexander2021-03-01 15:23:20
Yii
Alexander, 2021-03-01 15:23:20

Profiling sql queries when running from the console?

How in yii2 can I see a list of all sql queries that are sent to the database when running a command from the console via ./yii ? I read about profiling, but as I understand it, it works when you open the page from the browser, it's not clear how to set it up for the console

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Lykasov, 2021-03-02
@lykasov-aleksandr

Set up logging in the console.php config similar to web.php (this is of course for a basic project).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question