NetBeans generates code like Logger.getLogger(svr.class.getName()).log(Level.SEVERE, null, ex); to throw an exception in catch.It will be displayed in the console. After deploying my project, I see no exception information. How to output these error messages to a file and to the console when the console is available?
Thanks guys.
source share