-
Notifications
You must be signed in to change notification settings - Fork 129
Description
I currently have the following Ilogger configuartion.
return new LoggerConfiguration().Enrich.With().Filter.ByExcluding(ev => !fixieOptions.IsSerilogEnabled).MinimumLevel.Debug().WriteTo.Async(appender => appender.File(Path.Combine($"{AppDomain.CurrentDomain.BaseDirectory}\..\logs", "telemetry", "telemetry..log"), rollingInterval: RollingInterval.Day,outputTemplate: "{UtcTimestamp}|{Level:u3}|{Message:lj}{NewLine}{Exception}")).CreateLogger();
Each time I restart my windows service a new file is created and appended with a sequence number. The issue is that on another windows service the same configuration is used and when that service is restarted NO new file is created. How do I prevent the _001..._00n sequence files from getting created. I want a single file per day.