Where to store an application log file on Windows

后端 未结 7 846
南笙
南笙 2020-12-09 08:05

Where would be the best \"standard\" place to put an application\'s debug log file in a Windows user environment?

In this particular case, it is an application that

7条回答
  •  天命终不由人
    2020-12-09 08:24

    1.The program directory <- not good. Ideally you will only have RX permissions on this folder.

    2.The user's desktop <- technically can be done, but I don't like this idea. Polluting desktop... I, as a user, don't like it.

    3.The user's local Application Data directory. <- better

    My preference is a subdirectory under the program directory (with a clear name like "DebugLog" or something similar). Permissions on that subdirectory should allow creating and writing files ("Change" will be fine)

提交回复
热议问题