Skip to content
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

Can serilog-sinks-file support a more file naming strategy? #105

Closed
timslovic opened this issue Jul 2, 2019 · 1 comment
Closed

Can serilog-sinks-file support a more file naming strategy? #105

timslovic opened this issue Jul 2, 2019 · 1 comment

Comments

@timslovic
Copy link

Hi, I have an idea, serilog-sinks-file can support the following file naming strategy: (assuming the log file is named log.txt):
     The name of the latest log file is always log.txt. When the Rolling policy is triggered, the log file name is changed to log2019070114.txt or log_002.txt according to the policies of rollingInterval and rollOnFileSizeLimit.
   The advantage of this is that you always know that log.txt is the latest log file, so that other programs can read and write the latest logs.

@cocowalla
Copy link
Contributor

Thanks for the suggestion! This is already tracked by #40, so any discussion can continue there 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants