Skip to content

Provide a way to disable automatic flushing when using Target::Pipe #307

@quantatic

Description

@quantatic

When using Target::Pipe to log to a file (or another similar buffered output interface), the fact that we flush after each line causes a significant slowdown. It would be awesome to provide some sort of configuration mechanism to disable this automatic flushing after each line, letting the user force flushing at shutdown with log::logger().flush(), if necessary.

It looks like this automatic flushing logic was added here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions