Hi Guys
In the exception block I am trying to print the stack trace like this
if (logger.isLoggable(Level.I
NFO)) {
logger.severe("Exception executed:" + exc.printStackTrace());
}
But getting teh error that + sign is not allowed. Am i doing this right. Also is this the right way to print stack trace in java.logging. Any help will be greatly appreciated
Start Free Trial