Skip to content

v1.94.0 - Aludra

Choose a tag to compare

@MichaelSowah MichaelSowah released this 02 Dec 00:42
· 2 commits to main since this release
79d75ff

[1.94.0] - 2026-12-01 — Aludra

Every log file rotates, framework.log included, errors reach error.log, and the rotation
settings do what they say.

Fixed

  • Application errors are written to error.log. LogManager's app.log handler accepted INFO
    and above and stopped records there, so errors went to app-*.log and error-*.log was never
    created. Each file now takes one level range: DEBUG to debug.log, INFO to WARNING to app.log,
    ERROR and above to error.log. Each record is written once.
  • The framework channel rotates. The container's PSR-3 logger, which the exception handler
    writes to, used a plain stream, so storage/logs/framework.log grew without limit even though
    logging.channels.framework declared 'driver' => 'daily' and 'days'. It now writes dated
    files (framework-2026-12-01.log) and keeps the channel's days (LOG_ROTATION_DAYS). Set the
    channel's driver to 'single' to keep one file; a stream path such as php://stderr is never
    rotated.
  • logging.rotation.strategy is read. LogManager ignored it and always rotated daily. It now
    accepts daily (the default) or monthly, which writes app-2026-12.log and keeps enough
    months to cover logging.rotation.days. configureRotation() rebuilds the file handlers, so a
    new strategy also applies its retention.
  • Old dev query logs are deleted. The development query monitor's queries-YYYY-MM-DD.log
    files are pruned after logging.rotation.days, like the other log files.

Removed

  • The weekly and size rotation strategies and logging.rotation.max_size. They were never
    implemented: weekly kept seven daily files, and size logged a warning and rotated daily. Both
    now rotate daily. Rotation is shared through the new Glueful\Logging\LogRotation.

Upgrade Notes

  • Application errors move from app-*.log to error-*.log. Anything that searched app-*.log
    for errors should read error-*.log.
  • After the update, new framework log lines go to framework-YYYY-MM-DD.log. The existing
    framework.log stops growing and is not deleted by rotation; archive or remove it when you no
    longer need it. Anything that reads framework.log (log shippers, tail -f) should follow
    framework-*.log.
  • logging.rotation.days keeps the newest days daily files, counting only days that logged
    something, so retention can reach further back than days on a quiet app.
  • Remove max_size from your config/logging.php (LOG_MAX_SIZE is no longer read). A
    LOG_ROTATION_STRATEGY of weekly or size behaves as daily.
  • LOG_ROTATION_STRATEGY (daily or monthly) is now in .env.example; it was in the config
    before but had no effect.