Set Up Log For Sql Only

Hello,

How to configure the logger to avoid all that SESSION and COOKIE information in log and only see the DB query and error information?

You can configure the logVars property of the logging target to not contain _SESSION and _COOKIE. filtering log messages can be done by level and category. Configure the $categories and $levels property of the logging target for that.