Where are the best locations to write an error log in Windows?
Posted
by
Keith Sirmons
on Stack Overflow
See other posts from Stack Overflow
or by Keith Sirmons
Published on 2008-10-10T14:33:21Z
Indexed on
2010/12/25
21:54 UTC
Read the original article
Hit count: 203
permissions
|error-logging
Where would you write an error log file, say ErrorLog.txt
, in Windows? Keep in mind the path would need to be open to basic users for file write permissions.
I know the eventlog is a possible location for writing errors, but does it work for "user" level permissions?
EDIT: I am targeting Windows 2003, but I was posing the question in such a way as to have a "General Guideline" for where to write error logs.
As for the EventLog, I have had issues before in an ASP.NET application where I wanted to log to the Windows event log, but I had security issues causing me heartache. (I do not recall the issues I had, but remember having them.)
© Stack Overflow or respective owner