Skip to content

[Bug Report] RotatingFileSink should not truncate on open if rotation policy FileSize is used #119

@SpriteOvO

Description

@SpriteOvO

This sink truncates log.txt after each construction and does not rotate it.

let file = RotatingFileSink::builder()
    .base_path(dir.join("log.txt"))
    .rotation_policy(RotationPolicy::FileSize(u64::MAX))
    .rotate_on_open(true)
    .build_arc()?;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions