Skip to content

Conversation

nblumhardt
Copy link
Member

Builds on serilog/serilog-sinks-file#14 to support multi-process scenarios.

_fileSizeLimitBytes = fileSizeLimitBytes;
_retainedFileCountLimit = retainedFileCountLimit;
_encoding = encoding ?? new UTF8Encoding(encoderShouldEmitUTF8Identifier: false);
_encoding = encoding;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DRY: Serilog.Sinks.File configures the default encoding, including it here means the two may drift if one is updated without updating the other.

@nblumhardt nblumhardt merged commit ae65f1b into serilog:dev Aug 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants