Logging into clustered enviroment

2009-11-20 Thread Aleksandar Stoisavljevic
Hi all,

I am preparing myself for my first commercial application in clustered
Tomcat environment.

One of requests that I have is to allow exposing logs that happened on
either TomcatA or TomcatB aggregated in single report. TomcatA and TomcatB
are behind Apache Server and load balancing should be used.

Until now I developed web applications just for single Tomcat, or in case
that Load Balancing is requested no-one asked for such kind of aggregated
report.

My guess is that some kind of central repository for Logging should be used
(TomcatA and TomcatB can access to that central repository and write
thier logs there) but I am wondering what about permissions? What is TomcatA
is writing to log and TomcatB should log to same log his stuff?

Any experience about this matter? Can You point me out some inet address,
blog, book ?

Thanks in advance ?

-- 
Aleksandar dipl. ing. Stoisavljevic
Software Developer
mobile: +381 (0) 64 211 50 40
Web: http://www.staleksit.in.rs
E-mail:stal...@gmail.com e-mail%3astal...@gmail.com
Mail: Branislava Nusica 10, 21000 Novi Sad, Serbia


Re: Logging in Tomcat 5 (SysOut SysErr)

2009-11-20 Thread Aleksandar Stoisavljevic
You will need some kind of logging framework to do this (e.g. Log4J).

On Fri, Nov 20, 2009 at 12:26 PM, Milan Tomic tomicmi...@yahoo.com wrote:



 At present, system.out and system.err are printing in the Windows console.
 How can I redirect output to some file? Or even better would be to have 2
 outputs: file and Windows console. I have tried to read Tomcat docs and got
 lost there. It mentions default catalina.log as output, but I don't have it.
 Nor logging.properties.

 Please, can someone give me short guide what I have to do to acomplish
 logging of system.err and system.out into the file(s)? I can not change the
 way applications log, apps log to system.out and doesn't use log4j.

 Thank you,
 Milan




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 
Aleksandar dipl. ing. Stoisavljevic
Software Developer
mobile: +381 (0) 64 211 50 40
Web: http://www.staleksit.in.rs
E-mail:stal...@gmail.com e-mail%3astal...@gmail.com
Mail: Branislava Nusica 10, 21000 Novi Sad, Serbia