dfacto-lab / serilog-sinks-file

Serilog file sinks duplicated for file rolling
Apache License 2.0
14 stars 10 forks source link

persistentFileRollingInterval: PersistentFileRollingInterval.Day creates a new file for each running #14

Closed sergioampinho closed 3 years ago

sergioampinho commented 3 years ago

Hello,

I tried to used the follow configuration,

config.WriteTo.PersistentFile(logPath, persistentFileRollingInterval: PersistentFileRollingInterval.Day, preserveLogFilename: true);

but each time I start the app is created a new file, LOG_HMI20210915_001 LOG_HMI20210915_002 LOG_HMI20210915_003 ....

instead of adding the new log lines into the current file, since is the same day.

I also tried to add rollOnFileSizeLimit: false, but the behavior is still the same.

sergioampinho commented 3 years ago

https://github.com/dfacto-lab/serilog-sinks-file/issues/9