I am using
try{
}
catch(Exception e){
Logger.getLogger(Terminal.class.getName()).log(Level.SEVERE, null, e);
}
This exception will been thrown in users pc’s and i will not be able to see it.
Is there a way to send the exception log into a server?
As I understand you are using log4j library. If yes, you may want to use one of log4j appenders which supports sending logs to “server”, for example
org.apache.log4j.net.SyslogAppenderororg.graylog2.log.GelfAppender. Of course you have to run suitable application on your server which can accept logs sent by log4j appender at cilent site.