Skip to content

Support multi-process shared file sets #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 22, 2016
Merged

Conversation

nblumhardt
Copy link
Member

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

_roller = new TemplatedPathRoller(pathFormat);
_textFormatter = textFormatter;
_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