Skip to content

Rolling file is not flexible #14

Closed
@jods4

Description

@jods4

I was looking into moving our code from NLog to Serilog, but the rolling file sink is severly limited in comparison and probably a showstopper for us. (Even considering the alternative rolling file package)

First there are very few options, like choosing the period for a date-based rolling. E.g. having monthly files for a log that has few activity and long retention.

The lack of concurrent writes support is bad. As noted in the 2014 blog post, there was the IIS recycling issue. The split-file _001 trick is a hack but the worse is that retention is based on file count! So if one day I have issues and my app pool recycles like crazy, I'm going to loose all my log files! This doesn't seem ok to me.

I am tempted by all the cool Serilog structured logging features, but the rolling file sink is one (of two) blockers for me. It would be nice to port file target of NLog to Serilog, because it has plenty of options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions