redchamps/module-log-restrictions

It will help you to allow only critical information to logs.

1.0.0 2021-05-19 10:21 UTC

This package is not auto-updated.

Last update: 2024-12-13 03:18:02 UTC


README

Latest Stable Version Packagist Packagist

This Magento 2 extension will disallow INFO & DEBUG type entries in Magento logs when the store is in PRODUCTION mode.

Necessity

You may have seen system.log & debug.log filled with entries like

main.INFO: Add of item with id Magento_Backend::content was processed [] []

These entries are absolutely not required while store is in PRODUCTION mode. They create two main problems

  1. Grows the size of log file.
  2. Makes it very hard to look of real error messages.

Installation

composer require redchamps/module-log-restrictions

Customization

You may disallow other log types or disallow these entries in other modes along with PRODUCTION by adding or altering values in di.xml

Authors

  • RedChamps [Maintainer] Twitter Follow
  • Ravinder [Maintainer] Twitter Follow

License

This project is licensed under the Open Source License

ADS

Please visit our store for more free/paid extensions from us.