-
Notifications
You must be signed in to change notification settings - Fork 778
Allow log file to have ".log" or custom file extension #2672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This was done in this PR #2225 but for reasons I don't know tracing-appender hasn't been released in over a year. |
Seems related to #2701 too |
I'm not sure that would solve that issue. A custom extension would still use the date time stamp in the middle like |
It does. You need to set it through the new builder API. |
Feature Request
Crates
tracing-appender
Motivation
Functions like tracing_appender::rolling::daily() have an argument for
file_name_prefix
but none forfile_name_suffix
orfile_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 includesbat
andvscode
which syntactically highlight.log
files. But not files created bytracing
sincetracing
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.The text was updated successfully, but these errors were encountered: