在 Mac OS X 上使用 Web Start 捕获日志记录

发布于 2024-11-30 04:48:09 字数 311 浏览 4 评论 0原文

我正在运行一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

筱武穆 2024-12-07 04:48:09
  1. 打开 Java 控制面板
  2. 单击
  3. “调试”下的“高级”选项卡,启用跟踪和日志记录
  4. 运行 JWS 应用程序(javaws -viewer 如果已下载,则很容易)
  5. 让它崩溃或发生任何情况
  6. 在 <中查找日志文件代码>~/Library/Application\ Support/Oracle/Java/Deployment/log
  1. Open the Java control panel
  2. Click on the Advanced tab
  3. Under Debugging, enable tracing and logging
  4. Run your JWS application (javaws -viewer is easy if it's already downloaded)
  5. Let it crash or whatever
  6. Find your log file in ~/Library/Application\ Support/Oracle/Java/Deployment/log
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文