Skip to content

New feature shared: true locks file when writing #20

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

Closed
MartinGian opened this issue Aug 30, 2016 · 3 comments
Closed

New feature shared: true locks file when writing #20

MartinGian opened this issue Aug 30, 2016 · 3 comments

Comments

@MartinGian
Copy link

Hi,

Great job with this new feature! I have a problem now.. sometimes when I try to access the log file and read it with notepad, shows me an error that says the file is locked by another process.

This behaviour is because the new feature? There is a way to avoid it?

Thanks you!

@nblumhardt
Copy link
Member

Thanks for the report Martin. The shared implementation is missing FileShare.Read. I've PR'd the change upstream in Serilog.Sinks.File; it's a very minimal change so I'll push it through to publish a dev package including it shortly.

@nblumhardt
Copy link
Member

Hi again - package Serilog.Sinks.File version 3.0.1-dev-00741 is now on NuGet. If you update (e.g. via Update-Package Serilog.Sinks.File -Pre) is the issue resolved?

Thanks!

@MartinGian
Copy link
Author

Hi Nicholas, thanks you. Is working fine now.

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

No branches or pull requests

2 participants