java - Using UncaughtExceptionHandler in Struts Application -
i have web application based on struts 2 mvc. had configure proper logging in application did , working fine. what want is, need runtime exceptions , error due system failure (such lost database connection, third party service down etc etc), logged in application log file. i read thread.uncaughtexceptionhandler , gone through this answer still unable start requirement. can suggest me how initiate this? classes make? configure? etc etc. tell, there no multithreading involved in application. thank you! below log4j.properties log4j.appender.file=org.apache.log4j.rollingfileappender log4j.appender.file.file=${catalina.home}/logs/backlogapp.log log4j.appender.file.maxfilesize=1000kb log4j.appender.file.maxbackupindex=1 log4j.appender.file.layout=org.apache.log4j.patternlayout log4j.appender.file.layout.conversionpattern=%d{yyyy-mm-dd hh:mm:ss} %-4p %m%n log4j.appender.datepattern='.'yyyy-mm-dd # root logger option log4j.rootlogger=warn, file log4j.logger.com.nagar...