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 yesterday

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 13% 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

1040d 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

[neos/neos

An open source Content Application Platform based on Flow. A set of core Content Management features is resting within a larger context that allows you to build a perfectly customized experience for your users.

1151.0M777](/packages/neos-neos)[neos/media

The Media package

101.2M53](/packages/neos-media)[cesargb/laravel-logs-rotate

Rotate files log with compression

2659.3k](/packages/cesargb-laravel-logs-rotate)

PHPackages © 2026

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