Java控制台日志未通过Applet写入磁盘

use*_*353 15 java windows logging

在Java控制面板中,我启用了跟踪和日志记录.我正在对Java Applet进行故障排除.

Java日志显示在Java控制台中,但不会写入磁盘.

我签到了%APPDATA%\sun\java\deployment- 但那个目录是空的.

根据Java 8文档,这是日志应该写入的位置.我正在运行JRE 8.如何解决这个问题?

mic*_*ico 2

跟踪日志文件位置的另一种可能性可以从 jre8 文档中找到:

If the environment variable USER_JPI_PROFILE is set to <user plugin home> 
then the trace and log files will be written to:
<user plugin home>\Sun\Java\Deployment\log on Windows
Run Code Online (Sandbox Code Playgroud)

来源:

https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/console_trace_log.html