troubleshooting Question

having problem in using java.logging

Avatar of huzefaq
huzefaq asked on
JavaJava EE
6 Comments2 Solutions756 ViewsLast Modified:
Hi Guys

In the exception block I am trying to print the stack trace like this

if (logger.isLoggable(Level.INFO)) {
 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
ASKER CERTIFIED SOLUTION
Mick Barry
Java Developer
Join our community to see this answer!
Unlock 2 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros