Where to store an application log file on Windows

后端 未结 7 845
南笙
南笙 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:13

    Assuming you want to keep log files around a significant amount of time and they are intended to be used, read I would put the log file in a sub-folder of the user's local application data folder, accessible from windows explorer by typing %localappdata%.

    If they are temporary log files, only to be used in the event of system diagnostics then you should put them in the temporary folder, accessible from windows explorer %temp%.

提交回复
热议问题