← back to backlog: scriba

Add optional rolling file facilities

status

To-do

type

Task

description

In production, logging to a single file indefinitely will eventually exhaust disk space.

Improvement: Implement a scriba-file-logger that accepts configuration for file rotation.

Mechanics: Support size-based rotation (e.g., #:max-size-mb 10) and time-based rotation (e.g., #:rotate-daily #t). You can manage file descriptors under the hood, seamlessly closing the old port, renaming the file (e.g., test.log to test.1.log), and opening a fresh one without stopping the application.

scriba-8