PHPackages                             virtua/shopware-basic-app-logger-bundle - 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. virtua/shopware-basic-app-logger-bundle

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

virtua/shopware-basic-app-logger-bundle
=======================================

Add basic logger for Shopware application

1.0.5(3y ago)2349MITTwigPHP &gt;=8.0

Since Jul 25Pushed 3y agoCompare

[ Source](https://github.com/VirtuaPL/ShopwareBasicAppLogger)[ Packagist](https://packagist.org/packages/virtua/shopware-basic-app-logger-bundle)[ RSS](/packages/virtua-shopware-basic-app-logger-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Virtua Shopware Basic App Logger
================================

[](#virtua-shopware-basic-app-logger)

### Description

[](#description)

This bundle contains fully functional logger for Shopware Applications. The application meets the Shopware quality guidelines and places the logs in default Shopware log\_entry entity.

---

### Requirements

[](#requirements)

- PHP &gt;= 8.0
- Symfony 6
- ShopwareShop Entity

---

### Installation

[](#installation)

- Add bundle repository to composer.json

```
"virtua/shopware-basic-app-logger-bundle": "^1.0"
```

- Add bundle to bundles.php

```
Virtua\ShopwareBasicAppLoggerBundle\ShopwareBasicAppLoggerBundle::class => ['all' => true]
```

- Add bundle routes to routes.yaml

```
shopware_app_logger_bundle_routes:
    resource: "@VirtuaShopwareBasicAppLoggerBundle/Resources/config/routes.yaml"
```

- Create new file `config/packages/virtua_shopware_basic_app_logger.yaml`, with data:

```
imports:
    - { resource: '@VirtuaShopwareBasicAppLoggerBundle/Resources/config/config.yml' }
```

- Run migrations `bin/console doctrine:migrations:migrate`

---

### Usage

[](#usage)

\#####Writing This bundle is fully functional right after installation. To create new log, use **log()** method from **Logger** service. As a paremeter you have to provide **LoggerData** object, which can be found in **Util** directory.

Example log() usage:

```
use Virtua\ShopwareBasicAppLoggerBundle\Service\Logger;
use Virtua\ShopwareBasicAppLoggerBundle\Util\LoggerData;

/* ... */

public function __construct(Logger $logger)
{
	$this->logger = $logger;
}

/* ... */

public function exampleFunction(): void
{
	$loggerData = new LoggerData($shopId);
	$loggerData->setMessage("shopware.app.error"); //Use your appication name to identify error in logEntry
	$loggerData->setLevel(404);   //This is optional, default code is 400
	$loggerData->setContext('Your Error message', $errorData ); //errorData is optional parameter to pass additional error informations as array
	$this->logger->log($loggerData);
}
```

\#####Reading

Logs are displayed in Shopware entity log\_entry, available in Administration-&gt;System-&gt;Event Logs

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

1392d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/733635e9750b8cd7df153ab74a5107beb6af04e2f26eb103fb32e9dab0565986?d=identicon)[virtua](/maintainers/virtua)

---

Top Contributors

[![BanasikMateusz98](https://avatars.githubusercontent.com/u/109955847?v=4)](https://github.com/BanasikMateusz98 "BanasikMateusz98 (4 commits)")

### Embed Badge

![Health badge](/badges/virtua-shopware-basic-app-logger-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/virtua-shopware-basic-app-logger-bundle/health.svg)](https://phpackages.com/packages/virtua-shopware-basic-app-logger-bundle)
```

###  Alternatives

[liip/monitor-bundle

Liip Monitor Bundle

4728.7M16](/packages/liip-monitor-bundle)[socloz/monitoring-bundle

A profiling/monitoring Symfony2 bundle for production servers - alerts on exceptions, logs profiling data &amp; sends data to statsd/graphite

6944.2k](/packages/socloz-monitoring-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
