更新时间:2022-12-21 16:59:17
有关用户特定日志:
%APPDATA%/本地/...
有关绑定到用户的用户特定日志简介:
%APPDATA%/漫游/...
对于所有其他日志:
%ALLUSERSPROFILE%/ ...
请参阅 Environment.SpecialFolder 其他文件夹。
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.