Advertisement

10.23.2007 at 01:11PM PDT, ID: 22912979
[x]
Attachment Details

having problem in using java.logging

Asked by huzefaq in Java Standard Tag Library (JSTL) & Server Tags, Java Programming Language, J2EE

Tags: print, stack, trace

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 appreciatedStart Free Trial
 
Keywords: having problem in using java.logging
 
Loading Advertisement...
 
[+][-]10.23.2007 at 01:14PM PDT, ID: 20134206

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.23.2007 at 02:16PM PDT, ID: 20134641

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.23.2007 at 02:20PM PDT, ID: 20134661

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.23.2007 at 02:39PM PDT, ID: 20134778

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.23.2007 at 06:03PM PDT, ID: 20135737

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Standard Tag Library (JSTL) & Server Tags, Java Programming Language, J2EE
Tags: print, stack, trace
Sign Up Now!
Solution Provided By: objects
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628