rollingInterval and rollOnFileSizeLimit
See original GitHub issueI have given
<add key="serilog:write-to:RollingFile.rollOnFileSizeLimit" value="true" />
and
<add key="serilog:write-to:RollingFile.rollingInterval" value="RollingInterval.Day" />
and to check if log files are created like
log.txt
log_001.txt
log_002.txt
I have given
<add key="serilog:write-to:RollingFile.fileSizeLimitBytes " value="200" />
But new rolling log files are not created
I have referred https://github.com/serilog/serilog-sinks-file
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
c# - Serilog `rollOnFileSizeLimit` doesn't work with ...
I downloaded and debugged with the Serilog.Settings.Configuration source code, and found that I made a stupid mistake here.
Read more >Write Serilog events to files in text and JSON formats ...
Write Serilog events to files in text and JSON formats, ... Specifying both rollingInterval and rollOnFileSizeLimit will cause both policies to be applied, ......
Read more >Serilog Logging to sink
File( path: "log.txt", rollingInterval: RollingInterval.Day, fileSizeLimitBytes: null, rollOnFileSizeLimit: true, ) .CreateLogger();. appsettings.json.
Read more >Configure the log file size
xConnect automatically creates new log files when it reaches the file size limit. To configure the maximum size of log files: Open the...
Read more >How to Configure Rolling File Logging With Serilog
RollOnFileSizeLimit. RollingInterval. This policy specifies the time interval after which a new log file should be created. Available options ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@nblumhardt Thanks, I solved it. But, when I was referring Wiki, I could not find it.
@ranjan-ranjan I think you need:
HTH!