Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: Customizing Logger file names

Francois JEANMOUGIN

2003-10-16




> -----Message d'origine-----
> >> Howdy,
> >
> >  Grunt.
>
> Huh?

Sorry. Kind of private joke.

> So the server.xml file is the same for multiple servers, but the
> logging
> directory is also the same for all the servers? I assume it's a
> directory other than $CATALINA_HOME/logs, then? You could keep the
> filename the same if it were in different directories.

Say, the server.xml should be the same for multiple machines that are involved in load-balancing LVS. The logs are exported and shared between machines like all the other CATALINA_BASE directories.

The CATALINA_HOME directories are machine specific.

> >  Well, I'm a sysadmin :). I don't know that much about
> programming. I
> >hoped that log4j or another Logger would have this feature already.
> As
> I
>
> Log4j does have these feature. The <Logger> elements in tomcat's
> server.xml are not log4j loggers, they are proprietary tomcat loggers.

 And There is no way to exchange tomcat Logger with log4j ones? I would hope to do something like :

<Logger className="Log4j.FileLogger" ...

But I can't find any valid example of such use of Log4j.

>
> >  Note that if I were a developer, I would subscribe to the -devel
> list
> >:).
>
> Are we suppose to guess whether you're a developer or sysadmin? ;)

I thought it with written on the top of my head, sorry, I just verified, it is not :).

> Most
> of the people on the tomcat-user list are developers anyways. The
> tomcat-dev list is for tomcat developers to discuss internal tomcat
> matters.

Yes, but modifying org.apache.catalina.logger.FileLogger is clearly a tomcat developer concept :). Of course, if I could, I would. I remember a discussion about making log4j a standard Logger for all Jakarta project, but perhaps was it a log4j developer wish.

I'm open to nay other opinion about this concern.

François (never sure to write in English).


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.