Possible Duplicate:
Where to store an application log file on Windows
Windows seems to have several places where different applications store its logs. Windows services and some applications use the Windows event log, others use C:\ProgramData, another one store them to C:\Users(Local/System/Public/Default)\AppData/(Roaming/Local).
I noticed this when developing Windows services that the default (AppData/Roaming) environment variable points to something like C:\Windows\System32\Users\system\AppData\Roaming or other completely ridiculous locations, so I'm wondering if there's any sheet out there where to store logs for: User Applications/User Services/System Services and more general: What are all these application folders for (What belongs where?)
Thanks!
For user specific logs:
%APPDATA%/Local/...
For user specific logs tied to the users profile:
%APPDATA%/Roaming/...
For all other logs:
%ALLUSERSPROFILE%/...
See Environment.SpecialFolder for other folders.
The standard place for the log would be the AppData directory
Using %APPDATA% may be problematic with roaming profiles if the logs are numerous or huge : it slows their login process then u can use directory %TEMP%
i.e. windows temperory director
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With