PHPackages                             de-swebhosting-flow-package/databaselog - 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. de-swebhosting-flow-package/databaselog

AbandonedArchivedNeos-package[Logging &amp; Monitoring](/categories/logging)

de-swebhosting-flow-package/databaselog
=======================================

Provides a Backend for writing log entries to the database and a logger for connecting log entries with accounts and optionally partys from the party framework.

v0.1.0(11y ago)032GPL-3.0+PHP

Since Mar 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/astehlik/Flow-Package-De.SWebhosting.DatabaseLog)[ Packagist](https://packagist.org/packages/de-swebhosting-flow-package/databaselog)[ RSS](/packages/de-swebhosting-flow-package-databaselog/feed)WikiDiscussions develop Synced 1mo ago

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

[![Build Status](https://camo.githubusercontent.com/65a5be9d56d8ae913e7a620de1d542037fdc87c2fc15d9c9ba739f2ce90b0383/68747470733a2f2f7472617669732d63692e636f6d2f61737465686c696b2f466c6f772d5061636b6167652d44652e53576562686f7374696e672e44617461626173654c6f672e7376673f6272616e63683d646576656c6f70)](https://travis-ci.com/astehlik/Flow-Package-De.SWebhosting.DatabaseLog)

De.SWebhosting.DatabaseLog
==========================

[](#deswebhostingdatabaselog)

This is a [Flow framework](https://flow.neos.io/) package that brings you some logging features:

1. You can store log messages in the database.
2. You can search for log entries using a repository.
3. You can store account / user information in the log entries and filter for them.

Install
-------

[](#install)

If you want to use this package, you simply need to add a require statement to your `composer.json` file:

```
{
    "require": {
        "de-swebhosting-flow-package/databaselog": "~6.1"
    }
}
```

**Hint!** This package was tested with TYPO3 Flow Version 6.1 only. If you are having trouble with older versions please open an issue.

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

[](#how-to-use-it)

### Database backend

[](#database-backend)

There are two possibilities to use the database backend for logging.

#### Inject `databaseLogger` in your objects

[](#inject-databaselogger-in-your-objects)

This package comes with a preconfigured PSR log identifier called `databaseLogger`. This logger **only** logs to the database.

You can inject it by adding the related config in your `Objects.yaml`:

```
My\Vendor\My\Class:
  properties:
    logger:
      object:
        factoryObjectName: Neos\Flow\Log\PsrLoggerFactoryInterface
        factoryMethodName: get
        arguments:
          1:
            value: databaseLogger
```

With this configuration the `$logger` poperty in your class will use the `databseLogger` log.

#### Configure backend in existing loggers

[](#configure-backend-in-existing-loggers)

You can also add the database logger as an additional backend to existing logs or replace the default backend by ajusting the configuration in `Settings.yaml`:

This overwrites the i18nLogger backend with the database backend.

```
Neos:
  Flow:
    log:
      psr3:
        'Neos\Flow\Log\PsrLoggerFactory':
          i18nLogger:
            default:
              class: De\SWebhosting\DatabaseLog\Log\DatabaseBackend
              options:
                severityThreshold: '%LOG_INFO%'
                logIpAddress: true
```

To add it as additional backend, simply use another key than `default`:

```
Neos:
  Flow:
    log:
      psr3:
        'Neos\Flow\Log\PsrLoggerFactory':
          i18nLogger:
            database:
              class: De\SWebhosting\DatabaseLog\Log\DatabaseBackend
              options:
                severityThreshold: '%LOG_INFO%'
                logIpAddress: true
```

### Log repository

[](#log-repository)

You can use the `\De\SWebhosting\DatabaseLog\Domain\Repository\LogEntryRepository` like any other Flow repository to search for log entries. Inject it in your class and start querying.

It currently comes with a minimal selection of query methods. Please let me know if you need more.

### Account action logger

[](#account-action-logger)

A special feature of this package is the account action logger. It allows you to store log entries that are connected to an account or to a party (if the party framework is installed).

The account is passed to the logging backend in the additional data array in a parameter called `De.SWebhosting.DatabaseLog.Account`. If a normal backend is used, this parameter will simply be stored as a readable var dump.

If the DatabaseBackend of this package is used, the parameter will be interpreted and the account identifer and the authentication provider name will be stored in properties of the log entry model. This allows you to filter for log messages of a dedicated account.

If the party framework is installed and a party is connected to the provided account, the object identifier and the full name of the user will also be stored in the database.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

4087d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/956513?v=4)[Alexander Stehlik](/maintainers/astehlik)[@astehlik](https://github.com/astehlik)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/de-swebhosting-flow-package-databaselog/health.svg)

```
[![Health](https://phpackages.com/badges/de-swebhosting-flow-package-databaselog/health.svg)](https://phpackages.com/packages/de-swebhosting-flow-package-databaselog)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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