PDA

View Full Version : STDOUT issue


gaganjoshi007
20-04-2009, 17:29
Hi,
I like to have different stdout files for different project on my server log.
is it possible to have different files for different project.
eg: if I have 3 project(A,B,C) on server than I should have tomcat logs files like
stdout_20090409_A.log
stdout_20090409_B.log
stdout_20090409_C.log

could anybody help me?

kjkoster
20-04-2009, 19:03
Dear gaganjoshi007,

Well, it cannot be done for stdout, but if you use log4j (http://logging.apache.org/log4j/) in each application, you can direct the output for each application to a different file, using an appender for each program.

Using log4j is considered a best practice for modern webapps anyway, so you probably already use it. Just stop using the console appenders. :)

Kees Jan