Short: What's the most appropriate folder for windows service to dump log files into?
Details
I have a windows service that produces log files that a low-tech end user might be interested to look at (actual communication between a computer and a manufacturing line monitoring sensors).
The computer is a stand-alone dedicated computer that acts as a data acquisition server, it has monitor and accessible to the end user, but not meant to be touched unless there are problems.
What's the best (most appropriate) place (folder) to output those log files to?
My considerations are:
- ease of configuration (in case I have to give an access for local services account to that folder).
- ease of access for an end user (again: they shouldn't need to, but occasionally they might want to).
EDIT: It creates about 10 up to 1Mb rolling size files. There is no issue with size, so no compression and clean-up is necessary.
My preference is to make use of the All Users folder structure. By creating a folder in there with the same name as your service app, it's readily apparent where the contents come from, you can grant access to it without compromising the Program Files folder, and when you uninstall or upgrade your app you won't leave 'orphan' folders in Program Files that couldn't be removed because the installer didn't know it had to delete some log files.