The log file is too large? How to use mysqli::debug rationally to manage debugging resources and log sizes
Debugging and logging are a very important part of developing PHP applications. Especially in the scenario of using databases, rational debugging and recording SQL queries can not only help us quickly locate problems, but also effectively manage debugging information and avoid excessive log files. mysqli::debug is a very useful tool that can help us record detailed database debugging information, but without control, the logs can quickly become huge and even affect the performance of the application.
mysqli::debug