serilog-sinks-file
serilog-sinks-file copied to clipboard
Write Serilog events to files in text and JSON formats, optionally rolling on time or size
Hi. I want to configure serilog-sinks-file to create new log file each day according to UTC. Please, take a look at your class Clock.cs: https://github.com/serilog/serilog-sinks-file/blob/dev/src/Serilog.Sinks.File/Sinks/File/Clock.cs Here you're using DateTime.Now, but...
We need to specify rolling interval more accurate than just `Minute`, `Hour`, `Day`, `Month`, `Year`, and `Infinite`. How about adding a new parameter besides current `RollingInterval` enum parameter, for example...
Hello Serilog Team, would be cool if you could provide a snupkg for this project. It's already been done for the Serilog project.
It is not a new issue. It partially interacts with [#36](https://github.com/serilog/serilog-sinks-rollingfile/issues/36), [#87](https://github.com/serilog/serilog-sinks-file/issues/87), [#96](https://github.com/serilog/serilog-sinks-file/issues/96). Service uses an hour as rolling interval. Current log file has been deleted in-between. Logger waits till...
It seems we can't write an "audit" (i.e. "safe") log to a rolling file. You can do: `config.WriteTo.File("audit.txt", rollingInterval: rollingInterval.Day, retainedFileCountLimit: 7)` But those options are not exposed in `config.AuditTo.File("audit.txt",...
Currently, we throw if `hooks` are specified and `shared` is `true`. This is mostly because it's tricky to use stream wrapping (one of the main use cases) with the atomic-append-based...
I use sinks-file on windows system, when web app runing, log write to file, now I want to delete the log file at runtime, windows report: File is in use...
serilog No write `Log.Logger = new LoggerConfiguration() .MinimumLevel.Debug() .MinimumLevel.Information() .MinimumLevel.Error() .WriteTo.File($"C:\\logs\\log.txt", rollingInterval: RollingInterval.Day) //.WriteTo.File($"{AppContext.BaseDirectory}logs\\log.txt", rollingInterval: RollingInterval.Day) .CreateLogger(); Log.Information("test");`
Added a multiplier to the interval option
Hello, i'm getting this error when publishing Website (Asp.net Core Version 3.1.8): Detected package downgrade: System.IO from 4.3.0 to 4.1.0. Reference the package directly from the project to select a...