PHPackages                             domtomproject/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. domtomproject/logger-bundle

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

domtomproject/logger-bundle
===========================

Symfony bundle for logging actions

1.0(9y ago)028[1 issues](https://github.com/DomTomProject/LoggerBundle/issues)MITPHPPHP ^7.1

Since Jun 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/DomTomProject/LoggerBundle)[ Packagist](https://packagist.org/packages/domtomproject/logger-bundle)[ RSS](/packages/domtomproject-logger-bundle/feed)WikiDiscussions master Synced 4w ago

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

LoggerBundle
============

[](#loggerbundle)

Bundle for fast loggin and static storage

1. Installation
---------------

[](#1-installation)

```
 composer require domtomproject/logger-bundle

```

AND in AppKernel.php

```
$bundles = [
...
  new DomTomProject\LoggerBundle\DomtomLoggerBundle(),
...
];

```

2. Configuration
----------------

[](#2-configuration)

In this example we use MysqlWriter. In config.yml

```
...
doctrine:
    dbal:
        default_connection: default
        connections:
            ...
            log:
                driver:   pdo_mysql
                host:     '%database_host%'
                port:     '%database_port%'
                dbname:   'database'
                user:     '%database_user%'
                password: '%database_password%'
                charset:  UTF8
...
orm:
   ...
   entity_managers:
     log:
        connection: log
        mappings:
            AppBundle: ~
...
domtom_logger:
    writer: "domtom_logger.writer_mysql"
    mysql:
        manager: log

```

So now manager for logs is 'log'. Thats provide you to use other database for log data.

3. Using Example
----------------

[](#3-using-example)

#### a) Create new Log Entity.

[](#a-create-new-log-entity)

```
use Doctrine\ORM\Mapping as ORM;
use DomTomProject\LoggerBundle\Model\Log;

/**
 * @ORM\Entity
 */
class CustomLog extends Log {

    /**
     * @Column(type="text", nullable=true)
     */
    protected $text;

    public function __construct() {
        parent::__construct();
    }

    // method for short creating in one line
    public static function create(?string $text = null){
       $log = new self();
       $log->setText($text);
       return $log;
    }

    // setters and getters ...

}

```

#### b) Now in controller action

[](#b-now-in-controller-action)

```
   public function testLogAction(){
      $logStack = $this->get('domtom_logger.log_stack');
      $logStack->add(CustomLog::create('Log that'));
      ....

      // if something failed you can check all logs in stack as failed. Its done automatically if kernel.exception event is called.
      if($somethingBroken){
         $logStack->failed();
      }

   }

```

#### c) Logs will be automatically saved on kernel.terminate event.

[](#c-logs-will-be-automatically-saved-on-kernelterminate-event)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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 ~6 days

Total

3

Last Release

3298d ago

Major Versions

0.95 → 1.02017-06-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25922861?v=4)[DomTomProject](/maintainers/DomTomProject)[@DomTomProject](https://github.com/DomTomProject)

---

Top Contributors

[![pajso96](https://avatars.githubusercontent.com/u/19478539?v=4)](https://github.com/pajso96 "pajso96 (5 commits)")[![DomTomProject](https://avatars.githubusercontent.com/u/25922861?v=4)](https://github.com/DomTomProject "DomTomProject (2 commits)")

---

Tags

loggingdebugging

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/domtomproject-logger-bundle/health.svg)

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

###  Alternatives

[itsgoingd/clockwork

php dev tools in your browser

5.9k29.0M114](/packages/itsgoingd-clockwork)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

34424.8M84](/packages/rollbar-rollbar)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3511.6M24](/packages/analog-analog)[inpsyde/wonolog

Monolog-based logging package for WordPress.

184637.3k7](/packages/inpsyde-wonolog)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.3M](/packages/honeybadger-io-honeybadger-laravel)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M5](/packages/honeybadger-io-honeybadger-php)

PHPackages © 2026

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