不在Servlet容器中时StackHunter远程错误记录

时间:2015-07-17 10:34:32

标签: java error-handling

我正确安装了StackHunter服务器,现在我需要通过在我的Java桌面应用程序中抛出错误来测试它。

根据documentation我需要的是:

  

不在Servlet容器中?

     

如果您没有在servlet容器中运行,则可以记录异常   直接使用API​​:

com.stackhunter.client.StackHunter.logException(Throwable) 
     

或者,在初始化API之后使用Log4J或Logback:

com.stackhunter.client.StackHunter.init()

然而使用

StackHunter.logException(new Exception("test error..."));

什么都不做,考虑到我需要首先以编程方式设置密码和远程主机,但是在哪里以及如何进行,这是非常合理的?

显然官方网站上没有任何文档可以通过简单的程序设置桌面应用程序来发送异常。

1 个答案:

答案 0 :(得分:0)

您可以在https://stackhunter.com/support/找到支持页面。

听起来您已安装(甚至可能已设置)服务器:https://stackhunter.com/support/setup/install-stackhunter

如果是这种情况,请尝试设置客户端:https://stackhunter.com/support/setup/configure-clients

希望这有帮助。