开发者

JVM Logging Stacktraces

开发者 https://www.devze.com 2023-03-15 22:27 出处:网络
I have a java application embedded in a executable using JSMooth. JSMooth eats (doesnt 开发者_如何学JAVAdisplay) all the output from system.out and system.err. Is there a way I can turn logging on in

I have a java application embedded in a executable using JSMooth. JSMooth eats (doesnt 开发者_如何学JAVAdisplay) all the output from system.out and system.err. Is there a way I can turn logging on in the JRE to output all stacktraces when an exception is thrown?

Or someway that I can see the stacktrace for the exception being thrown?


you can use a logger like log4j to have it output all those messages to a log file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号