Fileslog
This module saves logs to the private filesystem, offering an alternative to database or syslog logging for sites with heavy database usage. It stores logs as JSON files, categorized and timestamped for easy filtering, and acts as a drop-in replacement for dblog with a similar interface. The module also provides canonical pages for each log entry and Drush commands for management.
This module provides an alternative to dblog and syslog modules.
If your site is database heavy and you'd like to take some load off of your database, but can't use syslog or want to avoid using it, this module saves logs to the private filesystem within Drupal.
It saves the logs as private://logs/[category]/[timestamp]-[severity].json, that way we can sort by timestamp, and filter by category and severity easily.
It's designed as a drop-in replacement for dblog, so it adds a "Recent log messages" link to the exact same menu as dblog does, and the view is nearly identical as well.
Every log also has a canonical page for more information.
There are also Drush commands to show and delete the logs.
WARNING: Version 1.0.3 is the last one that is compatible with Drupal 9! Version 1.1.x should be used for PHP 8.1 + Drupal 10.
Apologies for the mishaps in versioning, 1.0.4 shouldn't have existed in that range and 1.1.x should not be compatible with 9.5.x according to composer.