Skip to content

Feature request: Log rotation based on date #1096

@itskenny0

Description

@itskenny0

Simply put: I'd like to rotate my log files once every day, e.g. access.log-20160908, access.log-20160909 ...
This does not seem to be possible as of now.

I could configure this using the normal logrotate cron of my system. Does Caddy handle the file being moved away correctly?

//EDIT: I tested this. The file being moved away isn't a problem to Caddy, but it keeps writing to the file even after it has been moved away :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions