PHPackages                             infrangible/m2-log - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. infrangible/m2-log

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

infrangible/m2-log
==================

Infrangible Magento 2 Log Wrapper

2.0.0(3mo ago)042321MITPHPPHP &gt;=8.0

Since Jun 25Pushed 3mo agoCompare

[ Source](https://github.com/infrangible-dev/m2-log)[ Packagist](https://packagist.org/packages/infrangible/m2-log)[ Docs](https://github.com/infrangible-dev/m2-log)[ RSS](/packages/infrangible-m2-log/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (1)

Infrangible Log
===============

[](#infrangible-log)

Introduction
------------

[](#introduction)

This module was written to enable the possibility of using multiple loggers to log a record into several log files.

If you simply install this module nothing will change because the Magento default logger will be added as first logger. You can add more loggers using a plugin as described.

Usage
-----

[](#usage)

### Code

[](#code)

The following example is based on a feature module using this base module.

First you need to add a plugin definition in the di.xml of your module.

```

```

In this plugin you can add as many additional loggers as you like. In this case four more loggers are added. The loggers itself are included via dependency injection of Magento. Each logger has to implement the Interface `LoggerInterface`.

```
