PHPackages                             muckiware/log-plugin - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. muckiware/log-plugin

ActiveShopware-platform-plugin[Logging &amp; Monitoring](/categories/logging)

muckiware/log-plugin
====================

Mucki Log Plugin

v2.3.0(1y ago)31.2k↓50%MITPHPPHP &gt;= 8.1CI passing

Since Oct 21Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/muckiware/MuckiLogPlugin)[ Packagist](https://packagist.org/packages/muckiware/log-plugin)[ RSS](/packages/muckiware-log-plugin/feed)WikiDiscussions main65 Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (9)Used By (0)

MuckiLogPlugin
==============

[](#muckilogplugin)

Logger Plugin for Shopware 6 Webshops
-------------------------------------

[](#logger-plugin-for-shopware-6-webshops)

This Shopware 6 Plugin creates log files with file rotation, max file size setup, loglevels, etc. You can create for all your plugins own log fieles by context. like /var/log/myloginplugin.vendor.log, or /var/log/myextraplugin.vendor.log It can send emails by log events. For example: You get an error log event, and it can sends an email to a specific address.

Features overview
-----------------

[](#features-overview)

- Works for alle Shopware 6 versions, 6.5.x or greater
- Create log files with automatic file rotation by max file size and max file count
- Log files can automatically compress by gzip
- Easy to use logger interface, which can be used in all plugins and creates own log files by context
- Global log setup via plugin configuration, like log level, pattern for log content format, etc. [![backup_paths_config.png](img%2Fglobal_plugin_setup.png)](img%2Fglobal_plugin_setup.png)
- Can send emails by log events
- Storefront errors can be idendified by a unique error id, which can be used to find the error in the log file [![backup_paths_config.png](img%2Fstorefront_error_message.png)](img%2Fstorefront_error_message.png)

Installation
------------

[](#installation)

```
composer require muckiware/log-plugin
bin/console plugin:install -a MuckiLogPlugin
```

How to use
----------

[](#how-to-use)

In order not to create dependencies from Muckilog to other plugins, the original Monolog interface can be used. Muckilog plugin will replace the monolog method by using a decorator.

```

       ...

```

```
