Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
This small module redirect logging for messages to file ,not database.
To use it, install it as usual and go to admin/config/development/logging and enable watchdog redirecting.
All messages will not be sent to watchdog hooks (dblog, syslog, ...).And all go to file log.