Yireo LogExcludes for Magento 2
yireo/magento2-log-excludes
Filters out configured message patterns from being written to Magento logs, useful for suppressing bot-triggered exceptions that would otherwise flood log files.
Build Tests
Code Quality
Tested on Magento 2.4.9
Recent Test History
Each release is tested against the latest Magento version at that time.
Top Contributors
View LeaderboardShare This Module's Status
README
Loaded from GitHubYireo LogExcludes
A Magento 2 module that allows you to prevent certain messages from being written to log. Handy when there is a certain exception message triggered by bots without the need to investigate and without the need to have those messages flooding your logs.
Installation
composer require yireo/magento2-log-excludes
bin/magento module:enable Yireo_LogExcludes
Note that this module does not work together with the Yireo Whoops plugin.
Configuration
Navigate in the Magento Admin Panel to Stores > Configuration > Advanced > Developer > Yireo LogExcludes and configure the following:
- Enable Log Filtering (
system/yireo_logexcludes/enabled) - Exclude Patterns (
system/yireo_logexcludes/patterns)
This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.