servlet logging under tomcat

E

erjdriver

right now when i do from my servlets

System.out.println(...)

it goes to /logs/catalina.out

file. i've got several webapps and all of them send to
the same file.

is there a way to direct to a separate file
(i.e. each webapp to a separate file).

thx
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

erjdriver said:
right now when i do from my servlets

System.out.println(...)

it goes to /logs/catalina.out

file. i've got several webapps and all of them send to
the same file.

is there a way to direct to a separate file
(i.e. each webapp to a separate file).

System.out.println is very bad from a performance perspective.
Switch to log4j.

As a bonus log4j will also allow you to separate output.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,083
Members
48,773
Latest member
Kaybee

Latest Threads

Top