PHPackages                             webandco/flow-logrotate - 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. webandco/flow-logrotate

ActiveNeos-webandco[Logging &amp; Monitoring](/categories/logging)

webandco/flow-logrotate
=======================

0.0.3(2y ago)033PHP

Since Aug 31Pushed 2y ago2 watchersCompare

[ Source](https://github.com/webandco/flow-logrotate)[ Packagist](https://packagist.org/packages/webandco/flow-logrotate)[ RSS](/packages/webandco-flow-logrotate/feed)WikiDiscussions main Synced 1mo ago

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

webandco/flow-logrotate
=======================

[](#webandcoflow-logrotate)

Rotate log and exception files

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

[](#installation)

```
composer require webandco/flow-logrotate

```

Configuration
-------------

[](#configuration)

### Logfiles

[](#logfiles)

For logfile rotation we use [cesargb/php-log-rotation](https://github.com/cesargb/php-log-rotation).

There are quite a few default logfiles like

- systemLogger
- securityLogger
- sqlLogger
- i18nLogger

For example to rotate the systemLogger you can set the config like this

```
Neos:
  Flow:
    log:
      psr3:
        Neos\Flow\Log\PsrLoggerFactory:
          systemLogger:
            default:
              class: Webandco\Logrotate\Log\Backend\RotateBackend
              options:
                compress: true
                truncate: false

```

Replace `Neos.Flow.psr3.Neos\Flow\Log\PsrLoggerFactory.systemLogger`by whatever logger you want to rotate, e.g. `Neos.Flow.psr3.Neos\Flow\Log\PsrLoggerFactory.sqlLogger`.

Exceptions
----------

[](#exceptions)

Exception log rotation is enabled by

```
Neos:
  Flow:
    log:
      throwables:
        storageClass: Webandco\Logrotate\Log\ThrowableStorage\CleanupStorage
        optionsByImplementation:
          Webandco\Logrotate\Log\ThrowableStorage\CleanupStorage:
            storagePath: '%FLOW_PATH_DATA%Logs/Exceptions'
            maximumDirSize: 10485760
            logFilesToKeep: 3
            compress: true
            compressedArchivesToKeep: 10
            compressInterval: 'P1D'
            compressionAlgorithm: 'gz'
            archiveName:
              prefix: 'Exceptions.'
              dateTime: 'Y-m-d'
              postfix: '.tar.gz'
            # Pattern for archives of interest
            archiveGlob: 'Exceptions.*.tar.gz'
            # Pattern for files of interest
            glob: '*.txt'

```

Since every exception is written in a separate exception txt file those files are not rotated, but removed automatically. If compression is enabled with `compress: true` then, if an exception is logged, all exception files are compressed into an archive, except for those exception files, which would be considered for the current (aka `now()`) compression interval.
This means, if you have `compressInterval: 'P1D'` and an exception occures, it is left as is. If tomorrow a second exception occures, the first exception from yesterday is compressed, and the current exception is left as is in the exception txt.

Testing
-------

[](#testing)

To test the settings you can cause log messages by a hidden cli command.
To test an exception use

```
./flow rotate:log --exception --howmany=2

```

To test a log message use

```
./flow rotate:log --howmany=2 --level=error --words=5 --logger=systemLogger

```

Possible options for `logger` are those found in Settings `Neos.Flow.log.psr3.Neos\Flow\Log\PsrLoggerFactory`:

- systemLogger
- securityLogger
- sqlLogger
- i18nLogger and possible custom logger configurations.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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 ~180 days

Total

3

Last Release

986d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2139456?v=4)[web&amp;co](/maintainers/webandco)[@webandco](https://github.com/webandco)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/webandco-flow-logrotate/health.svg)

```
[![Health](https://phpackages.com/badges/webandco-flow-logrotate/health.svg)](https://phpackages.com/packages/webandco-flow-logrotate)
```

###  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)
