My app runs on Windows and it writes log to the file a.log.
When I run NXLog to watch this file (to send log to the server), My app gets CFileException::sharingViolation trying to write log to a.log file.
It does not happen always, but when the log is big sometimes it happens and my app can not write log to a.log file.
Searching the internet, I found 'You should open the file with CFile::shareDenyNone' to avoid this problem.
So my questions is :
1. Is NXLog opens the file with ' CFile::shareDenyNone'?
2. How can I avoid this problem?
Here's my nxlog.conf 's input configuration.
Exec $Message = $raw_event;
Exec if file_name() =~ /.*\\(.*)/ $SourceName = $1;
Any comment will be appreciated.