LogFusion only opens the file for reading and doesn't put locks on it. Is it only one specific app's logs that you're running into this issue with? We've never come across this here, so I'm not quite sure how to even test it.
Jeff Andrews1
11 discussion posts
Thanks for the info, Keith.
I've only had LogFusion for 2 days thus far, and have only used it with a couple different types of logs. The logs with the access problem are being generated by an application which I am writing that requires a couple of Autodesk products, so it's not something I could easily send you.
It is clear though that the logs only have the error messages in them when I have the log files open in LogFusion and have the "Auto-Scroll to Bottom" functionality enabled. I was previously using Notepad++ to view the logs and I have a macro I made there to reload the file from disk whenever I hit a hotkey. But that was tedious, which is what drew me to LogFusion for the real-time automated updates. Unfortunately, for some reason, I can't use that feature or the log file cannot get written to properly.
Ok, I'm not sure where to go from here. I've checked with our devs, and LogFusion doesn't have any code that would be putting a lock on the file. The autoscroll button doesn't create any additional file handles either, it just tells LogFusion whether or not it should always keep the scroll bar at the bottom.
I'm wondering if antivirus might be at play here. Maybe when LogFusion is trying to read the file, your antivirus tries to scan it? Some antivirus apps will lock files while they're being scanned.
Jeff Andrews1
11 discussion posts
No worries, Keith. Consider it a closed issue. You already provided plenty of assurance that LogFusion isn't doing anything directly which is out of the ordinary. It's likely an isolated occurrence due to something else about my system and I appreciate all the info you already provided. Thank you very much.
Regards,
= Jeff =
No worries at all, Jeff! If you have any further questions, please don't hesitate to ask!
Jeff Andrews1
11 discussion posts
Hi Thomas. Thank you very much for your reply. I think you may be onto something. Our logging code did not have the additional "FileShare.Read" parameter and I have since added it. As luck would have it, I cannot test that at the moment, but in the couple quick tests I was able to do, I did not encounter the error that I had previously encountered from time to time. I think you have probably solved this for me. Thanks again.
Glad to hear that Thomas was able to help there! If you do still run into any trouble, please let us know.
Thanks!