tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <rey...@hugsmidjan.is>
Subject RE: System.out.println()
Date Fri, 04 Apr 2003 16:31:19 GMT
Hi, 
I am not sure it's possible to understand the question but...
What kind of error are you refering to ??
If you mean exception you could do 

  exception.printStackTrace(System.out); 

To print out the stacktrace (the most usefull bit of an exception). 

But you can of course always print out the exception like this : 
 System.out.println("Exception " +  e.toString()); 
or
 System.out.println("Exception " +  e.getMessage()); 

On the other hand I recommend that you to check out log4j or some other logging mechanism
so you can direct your error logs into a file and control what goes out there.
Hope it helps
-reynir



> -----Original Message-----
> From: Srinivasu Gandu [mailto:SGandu@SoftwareSpecialists.com] 
> Sent: 4. apríl 2003 16:05
> To: 'Tomcat Users List'
> Subject: System.out.println()
> 
> 
> How do we use System.out.println("error" + e) in the 
> tomcat4.1.18 to see the error messages in the console..
> 
> Thanks -Srini
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message