Skip to content

Wrong file rolling sequence number when preserving filename #2

Closed
@numito

Description

@numito

After two runs, when log.txt and log_001.txt both exist and are 1039 bytes each, it refuses to log with exception:
System.IO.IOException: 'Cannot create a file when that file already exists.

see issue serilog/serilog-sinks-file#40 (comment)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions