[英]How do you save the “Java Console” Log when a program crashes?
I have enable tracing and logging and show console enabled but the program I am using is crashing Java in a matter of minutes, is there anyway I can save the log directly to a file so when it crashes I can see what the last error was that was causing this? 我已启用跟踪和日志记录并启用了显示控制台,但我正在使用的程序在几分钟内崩溃了Java,无论如何我可以将日志直接保存到文件中,所以当它崩溃时我可以看到最后一个错误是什么是造成这个? Also I have no access to the source code of this program.
此外,我无法访问此程序的源代码。
请在启动java时添加此项 - XX:ErrorFile=filename%p.log.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.