cleatsquad/magento2-logstream

A Magento 2 module to redirect all logs to StdOut, ideal for dockerized environments.

1.0.0 2024-04-12 08:43 UTC

This package is auto-updated.

Last update: 2024-11-12 10:21:21 UTC


README

Packagist Downloads Packagist Version Packagist License

Magento Version Support

Magento 2.4.6 and above

Purpose

CleatSquad_LogStream is a Magento 2 module designed to redirect all Magento logs to StdOut, which is particularly useful in dockerized environments. This approach facilitates the aggregation of logs into external systems without the need to manage Magento-specific log files and configurations.

Getting Started

This module is intended to be installed via Composer. To add it to your Magento 2 project, follow these steps:

Installation

  1. Download the package

    composer require cleatsquad/magento2-logstream
  2. Enable the module

    ./bin/magento module:enable CleatSquad_LogStream
    ./bin/magento setup:upgrade

Usage

Once installed, the module will automatically redirect all Magento logs to StdOut without any additional configuration.

Configuration

To configure the log level for the CleatSquad Magento2 LogStream module, follow these steps in the Magento admin interface:

Setting the Log Level

  1. Navigate to Stores > Configuration in the admin panel sidebar.
  2. Under the General section, find and open the Logging group.
  3. Select the desired log level from the Log Level dropdown menu.

Changes will take effect immediately after saving the configuration.

Upgrading

To upgrade the module to the latest version, run:

composer update cleatsquad/magento2-logstream
./bin/magento setup:upgrade

Follow

For the latest updates and new features, follow our GitHub repository: cleatsquad/magento2-logstream.

Contributing

Contributions to CleatSquad_LogStream are always welcome. You can contribute in different ways:

  1. Report Issues: Report bugs and suggest new features.
  2. Fix Bugs: Submit pull requests with bug fixes.
  3. Add Features: Develop new features and submit them as pull requests.
  4. Improve Documentation: Help new users by improving or translating the documentation.

Support

If you need help or have a question, you can:

Authors

  • Mohamed EL Mrabet - Initial work - mimou78

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Magento Community
  • Anyone who contributes to the open-source community