# graycore/magento2-stdlogging

> A Magento 2 module that changes all logging handlers to stdout

`composer require graycore/magento2-stdlogging`

Canonical URL: https://packagento.com/graycore/magento2-stdlogging

## At a glance

- **Vendor**: graycore (https://packagento.com/graycore.md)
- **Latest version**: v2.1.2 — released 2026-05-18
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/graycore/magento2-stdlogging and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require graycore/magento2-stdlogging:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

A Magento 2 module that changes all logging handlers to stdout

## README

<div align="center">

[![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/master/LICENSE)
[![MageCheck Status](https://img.shields.io/github/actions/workflow/status/graycoreio/magento2-stdlogging/check-extension.yaml?&label=MageCheck&labelColor=1a1a1a)](https://github.com/graycoreio/magento2-stdlogging/actions/workflows/check-extension.yaml)
![MageCheck Supported Version](https://img.shields.io/badge/currently_supported-any?label=MageCheck%20Supported&labelColor=1a1a1a&color=090c9b)

</div>




### Magento Version Support
![Magento v2.3 Supported](https://img.shields.io/badge/Magento-2.3-brightgreen.svg?labelColor=2f2b2f&logo=magento&logoColor=f26724&color=464246&longCache=true&style=flat)
![Magento v2.4 Supported](https://img.shields.io/badge/Magento-2.4-brightgreen.svg?labelColor=2f2b2f&logo=magento&logoColor=f26724&color=464246&longCache=true&style=flat)

### 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](https://getcomposer.org/). From the root of your Magento 2 project:

1. Download the package
```bash
composer require graycore/magento2-stdlogging
```
2. Enable the package

```bash
./bin/magento module:enable Graycore_StdLogging
```
### Upgrading
* [Semver Policy](https://semver.org/)

## Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [2.1.2](https://github.com/graycoreio/magento2-stdlogging/compare/v2.1.1...v2.1.2) (2026-05-18)


#### Miscellaneous Chores

* **deps-dev:** upgrade to phpunit 12 and magento/magento-coding-standard:40 ([d3024c9](https://github.com/graycoreio/magento2-stdlogging/commit/d3024c91bc413d63fc6b704e42aa91efb43b790f))
* **deps:** bump graycoreio/github-actions-magento2 from [@main](https://github.com/main) to 8.2.0 ([31c55ba](https://github.com/graycoreio/magento2-stdlogging/commit/31c55ba6723febd69854382d3a62d9d318cb1a2b))

### [2.1.1](https://github.com/graycoreio/magento2-stdlogging/compare/v2.1.0...v2.1.1) (2026-03-03)


#### Miscellaneous Chores

* remove nodejs deps ([4c9ef6e](https://github.com/graycoreio/magento2-stdlogging/commit/4c9ef6e918546e280d27bf40fc9e9e2279531b3b))

### [2.1.0](https://github.com/graycoreio/magento2-stdlogging/compare/v2.0.0...v2.1.0) (2025-04-10)


#### Features

* bump allowed monolog dependency  ([#27](https://github.com/graycoreio/magento2-stdlogging/issues/27)) ([5eedf82](https://github.com/graycoreio/magento2-stdlogging/commit/5eedf82e18833e27fa3ed571b9b3b19cd7127061))


#### Bug Fixes

* log bubbling compat between v2 and v3  ([#27](https://github.com/graycoreio/magento2-stdlogging/issues/27)) ([9945597](https://github.com/graycoreio/magento2-stdlogging/commit/994559767a720853ea36143a81586e3acf08c8de))


#### Miscellaneous Chores

* **deps:** ignore Magento plugin ([#24](https://github.com/graycoreio/magento2-stdlogging/issues/24)) ([e254c4e](https://github.com/graycoreio/magento2-stdlogging/commit/e254c4e85b458be5565563d95459a3a4249d5bbf))

### [2.0.0](https://github.com/graycoreio/magento2-stdlogging/compare/v1.1.1...v2.0.0) (2022-06-26)


#### ⚠ BREAKING CHANGES

* **all:** we no longer test against php7.2. Please use it at your own risk.

#### ci

* **all:** fixup failing CI pipeline ([#15](https://github.com/graycoreio/magento2-stdlogging/issues/15)) ([f8dd292](https://github.com/graycoreio/magento2-stdlogging/commit/f8dd292eee2232d3355ed80dcf632906632c5960))

#### [1.1.1](https://github.com/graycoreio/magento2-stdlogging/compare/v1.1.0...v1.1.1) (2020-10-23)


#### Bug Fixes

* **deps:** align monolog version with Magento base version ([3380ca7](https://github.com/graycoreio/magento2-stdlogging/commit/3380ca7a3c971b7f857b77821a582459f9055c34))

### [1.1.0](https://github.com/graycoreio/magento2-stdlogging/compare/v1.0.3...v1.1.0) (2020-09-16)


#### Features

* **deps:** update deps to support Magento v2.4 ([0958f4a](https://github.com/graycoreio/magento2-stdlogging/commit/0958f4a43c62cc5658a4147d3d18eb87271213f4))

#### [1.0.3](https://github.com/graycoreio/magento2-stdlogging/compare/v1.0.2...v1.0.3) (2020-06-23)


#### Bug Fixes

* **handler:** fix bug where accessing state  would cause a crash during setup:install ([#1](https://github.com/graycoreio/magento2-stdlogging/issues/1)) ([c903733](https://github.com/graycoreio/magento2-stdlogging/commit/c903733))



#### [1.0.2](https://github.com/graycoreio/magento2-stdlogging/compare/v1.0.1...v1.0.2) (2020-03-12)


#### Bug Fixes

* **log:** Inability to Run the DI Compiler before setup ([0a38687](https://github.com/graycoreio/magento2-stdlogging/commit/0a38687))


#### Build System

* **deps:** bump composer deps ([fbc7f70](https://github.com/graycoreio/magento2-stdlogging/commit/fbc7f70))
* **release:** revert bad package.json version ([635e82e](https://github.com/graycoreio/magento2-stdlogging/commit/635e82e))

## Recent Versions

| Version | Released |
|---|---|
| v2.1.2 | 2026-05-18 |
| v2.1.1 | 2026-03-03 |
| v2.1.0 | 2025-04-10 |
| v2.0.0 | 2022-06-26 |
| v1.1.1 | 2020-10-23 |
| v1.1.0 | 2020-09-16 |
| 1.0.3 | 2020-06-23 |
| 1.0.2 | 2020-03-12 |
| 1.0.1 | 2020-03-06 |
| 1.0.0 | 2020-03-06 |

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | ^102.0 \|\| ^103.0 |
| magento/module-developer | ^100.3.3 |
| monolog/monolog | ^1 \|\| ^2 \|\| ^3 |

### Require (dev)

| Package | Constraint |
|---|---|
| magento/magento-coding-standard | ^40 |
| magento/php-compatibility-fork | ^0.1.0 |
| phpunit/phpunit | ^12.0 |
| squizlabs/php_codesniffer | ^3.0.0 |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["graycore/magento2-stdlogging"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

graycore is a Magento 2 vendor on Packagento. See https://packagento.com/graycore.md for their full catalogue.

