Skip to content

Make shared log files readable while in use #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 1 commit into from
Aug 30, 2016

Conversation

nblumhardt
Copy link
Member

Missed the FileShare.Read option in the original implementation :-O

Fixes serilog/serilog-sinks-rollingfile#20

@@ -64,13 +61,7 @@ public FileSink(string path, ITextFormatter textFormatter, long? fileSizeLimitBy
Directory.CreateDirectory(directory);
}

#if ATOMIC_APPEND
// FileSystemRights.AppendData improves performance substantially (~30%) when available.
Copy link
Member Author

Choose a reason for hiding this comment

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

Made an error while benchmarking: the improvement was due to another change brought in accidentally (the removal of CharacterLimitingTextWriter, not this flag, so reverting the little accommodation here.

@nblumhardt
Copy link
Member Author

Pushing through to dev so that we can get some wider usage, it'd be nice to send this on towards master as soon as possible :-)

@nblumhardt nblumhardt merged commit 65ae93d into serilog:dev Aug 30, 2016
@nblumhardt nblumhardt mentioned this pull request Sep 1, 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.

1 participant