graycoreio / magento2-stdlogging

A drop in Magento 2 Module to pump all Magento 2 logs to StdErr instead of files.
MIT License
22 stars 7 forks source link
docker ecommerce hacktoberfest kubernetes logging magento magento2 stderr stdout

Magento 2 StdLogging

[![Packagist Downloads](https://img.shields.io/packagist/dm/graycore/magento2-stdlogging?color=blue)](https://packagist.org/packages/graycore/magento2-stdlogging/stats) [![Packagist Version](https://img.shields.io/packagist/v/graycore/magento2-stdlogging?color=blue)](https://packagist.org/packages/graycore/magento2-stdlogging) [![Packagist License](https://img.shields.io/packagist/l/graycore/magento2-stdlogging)](https://github.com/graycoreio/magento2-stdlogging/blob/main/LICENSE) [![Installation Test](https://github.com/graycoreio/magento2-stdlogging/actions/workflows/install.yaml/badge.svg)](https://github.com/graycoreio/magento2-stdlogging/actions/workflows/install.yaml) [![Integration Test](https://github.com/graycoreio/magento2-stdlogging/actions/workflows/integration.yaml/badge.svg)](https://github.com/graycoreio/magento2-stdlogging/actions/workflows/integration.yaml) [![Unit Test](https://github.com/graycoreio/magento2-stdlogging/actions/workflows/unit.yaml/badge.svg)](https://github.com/graycoreio/magento2-stdlogging/actions/workflows/unit.yaml)

Magento Version Support

Magento v2.3 Supported Magento v2.4 Supported

Purpose

This module is a drop in replacement to pump all Magento 2 logs to StdOut. This is especially useful when working in a dockerized environment where you want to aggregate your logs into an external system without having to know about Magento specific log files and configurations.

Getting Started

This module is intended to be installed with composer. From the root of your Magento 2 project:

  1. Download the package
    composer require graycore/magento2-stdlogging
  2. Enable the package
./bin/magento module:enable Graycore_StdLogging

Upgrading