Skip to content
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

Read the current log file in UWP #107

Closed
simonaghinea opened this issue May 30, 2017 · 2 comments
Closed

Read the current log file in UWP #107

simonaghinea opened this issue May 30, 2017 · 2 comments

Comments

@simonaghinea
Copy link

I cannot read the current log file in UWP, it seems that the file remains locked.
Is there a way to unlock the file or force a close? I have no problem reading older files. The logger is configured to create a log file each day.

@ThomasFerro
Copy link

Have you tried to set the StreamingFileTarget's property KeepLogFilesOpenForWrite to false ?

var fileTarget = new StreamingFileTarget()
{
    KeepLogFilesOpenForWrite = false
};

@simonaghinea
Copy link
Author

Thank you, that was it! I was almost sure I have already tried setting it on false :D

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