java - StackHunter remote error logging when not in a Servlet Container -


i correctly installed stackhunter server, need test throwing error in java desktop application.

according documentation need to:

not in servlet container?

if you're not running in servlet container, can log exceptions using api directly:

com.stackhunter.client.stackhunter.logexception(throwable)  

or, using log4j or logback, after initializing api:

com.stackhunter.client.stackhunter.init() 

however using

stackhunter.logexception(new exception("test error...")); 

does nothing, that's quite reasonable considering need set password , remote host programatically first, , how?

apparently there's no documentation whatsoever in official website simple programatical way setup desktop application send exception.

you can find support pages @ https://stackhunter.com/support/.

it sounds you've installed (and maybe setup) server: https://stackhunter.com/support/setup/install-stackhunter.

if that's case, try setting client: https://stackhunter.com/support/setup/configure-clients.

hope helps.


Comments