[英]How to disable Restlet access logging when using JEE version in Servlet Container like Tomcat?
[英]StackHunter remote error logging when not in a Servlet Container
我正確安裝了StackHunter服務器,現在我需要通過在Java桌面應用程序中拋出錯誤來對其進行測試。
根據文檔,我需要做的是:
不在Servlet容器中嗎?
如果您不在servlet容器中運行,則可以直接使用API記錄異常:
com.stackhunter.client.StackHunter.logException(Throwable)
或者,在初始化API之后,通過使用Log4J或Logback:
com.stackhunter.client.StackHunter.init()
但是使用
StackHunter.logException(new Exception("test error..."));
什么都不做,考慮到我首先需要以編程方式設置密碼和遠程主機,這是很合理的,但是在哪里以及如何進行?
顯然,官方網站上沒有任何文檔提供用於設置桌面應用程序以發送異常的簡單編程方式。
您可以在https://stackhunter.com/support/上找到支持頁面。
聽起來您已經安裝(甚至安裝了)服務器: https : //stackhunter.com/support/setup/install-stackhunter 。
如果是這種情況,請嘗試設置客戶端: https : //stackhunter.com/support/setup/configure-clients 。
希望這可以幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.