Yireo_LogExcludes

PHP 8.2 - 8.5
Magento 2.4.6 - 2.4.9
CSP Yes
PHPStan 5
Magento PHPCS 7
License OSL-3.0
Latest Release 1.0.2

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)

Current status

Playwright test success
Magento 2 Integration Tests success
Magento 2 Static Tests success
Magento 2 DI compilation success
Magento 2 Unit Tests success
Playwright test success
Magento 2 Integration Tests success
Magento 2 Static Tests success
Magento 2 Unit Tests success
Magento 2 DI compilation success

Support

For getting support, create an Issue under the following project URL:

https://github.com/yireo/Yireo_LogExcludes

Configuration Options

The following options of this module can be configured via the Store Configuration:

Yireo LogExcludes > Allow Excluding Patterns from Logs
system/yireo_logexcludes/enabled
Yireo LogExcludes > Exclude Patterns
system/yireo_logexcludes/patterns
Module Dependencies

The following dependencies are declared in the module its `etc/module.xml` file:

Magento_Backend Magento_Config Magento_Csp Magento_Directory Magento_Store Magento_Theme
Composer details
Magento module name
Yireo_LogExcludes
Composer name
yireo/magento2-log-excludes
Composer version
1.0.2
Default branch
master
Requirements
magento/framework: ^103.0
magento/module-backend: ^102.0
magento/module-config: ^101.2
monolog/monolog: ^1.0 || ^2.0 || ^3.0
php: >=8.2 <8.6
psr/log: ^1.0 || ^2.0 || ^3.0
Releases
1.0.2 06 November 2026
1.0.1 06 November 2026
1.0.0 06 November 2026
Changelog

[1.0.2] - 19 October 2026

Fixed

  • Read settings in default scope to fix setup:install
  • Fix framework wildcard dep
  • Fix "The default website isn't defined" during setup:install by reading config in default scope
  • Respect the "enabled" setting when matching log messages

[1.0.1] - 15 October 2025

Fixed

  • Move config path from dev/ to system/ to show it in Production Mode

[1.0.0] - 15 October 2025

Fixed

  • Copy generic CI/CD files
  • Adding all files to git via Yireo Command

Last modified: October 17, 2026