-
Notifications
You must be signed in to change notification settings - Fork 31
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
Request add: FlushWithoutDispose #88
Comments
Hi! The problem in your example is that you need to try reopening the file with a very permissive FileShare value (at least read and write). May be a good one to debug over on Stack Overflow, if you need some more info. HTH! |
You right, I could open the file without exception by using FileShare.ReadWrite, but I don't need to write anything, I just need to read it, could you please explain it?? thanks. Also I still think we should add something like |
👍 |
I don't think You can flush the logger by calling HTH! |
I need to read the log file, but continue logging to file, could we add something like
FlushWithoutDispose
?Another problem I have is : does it using shared lock? I set
WriteTo.Async(a => a.File(Common.Instance.Configs.LogPath, rollingInterval: RollingInterval.Day, shared: true))
but when I useit will still throw exception:
The text was updated successfully, but these errors were encountered: