在 Mac OS X 上使用 Web Start 捕获日志记录
我正在运行一个 java web start 应用程序。启动时就崩溃了。 java 控制台中有很多有用的信息。然而,一旦 WebStart 崩溃,控制台窗口就会关闭,所有可爱的日志信息都会消失。我一直无法找到捕获该日志信息的方法。
提供 Web 启动代码的 Web 服务器将文件传送到 Mac。我通过单击该文件启动 java 应用程序。启动画面出现,然后崩溃。有没有一种简单的方法,无需更改 java 应用程序中的代码即可强制将该输出流重定向到某处的日志文件?我找不到任何说明这是可能的文档。
我想要打印到 java web start 控制台屏幕的所有信息,但在一个文件中。
I am running a java web start application. It crashes on start up. There's lots of useful information in the java console. However, once WebStart crashes, the console window closes and all my lovely logging information is gone. I haven't been able to find a way to capture that log info.
The web server, that's providing the web start code, delivers a file to the mac. I start the java app by clicking on the file. The splash screen comes up and then it crashes. Is there a simple way, with out changing the code in the java app to force the redirection of that output stream to a log file somewhere? I haven't been able to find any documentation that says this is possible.
I want all the information that gets printed to the java web start console screen, but in a file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
javaws -viewer
如果已下载,则很容易)javaws -viewer
is easy if it's already downloaded)~/Library/Application\ Support/Oracle/Java/Deployment/log