-
Notifications
You must be signed in to change notification settings - Fork 119
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
{Date} includes literal {Date} in file-name #127
Comments
I think you're getting this sink mixed up with the deprecated serilog-sinks-rollingfile sink. While |
But what if we want the date located somewhere other than the end of the filename ? And what if we want date formatted differently than yyyymmdd ? |
That's not supported OOTB, but I think you could achieve it with FileLifecycleHooks |
Went to #243 |
Asp.Net Core 2.2.0
Serilog 2.9.0
Serilog.Sinks.File 4.1.0
appSettings.json
File is created as
MyApplication-{Date}20200127.log
The text was updated successfully, but these errors were encountered: