Skip to content

Allow log file to have ".log" or custom file extension #2672

Open
@sloganking

Description

@sloganking

Feature Request

Crates

tracing-appender

Motivation

Functions like tracing_appender::rolling::daily() have an argument for file_name_prefix but none for file_name_suffix or file_extension. From what I can tell, there is currently no current method to have tracing write to log files that have the .log file extension. This is quite annoying as other programs make use of the .log extension. This includes bat and vscode which syntactically highlight .log files. But not files created by tracing since tracing does not create files with the .log extension.

Proposal

Allow users to tell tracing to give their log files the .log extension. Or allow them to specify the file extension they would like their log files to have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions