> -----Message d'origine-----
> De�: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Envoy�: jeudi 16 octobre 2003 17:12
> ��: Tomcat Users List
> Objet�: RE: Customizing Logger file names

        Herk. Sorry for the header...
 
> Howdy,

        Grunt.
> 
> >What I would like to do is to use a variable in the attributes of the
> >Logger definition (either prefix or suffix). I don't know if I could
> do
> it
> >using XSL (and if I could, I don't know how to) or if you have a
> better
> >idea. Is there another Logger Nested Component I can use that aware
> about
> >hostname, servername or any other parameter I can pass to it.
> 
> It's funny you ask with this timing -- we were just discussing on the
> tomcat-dev list adding system properties to server.xml ;)  That would
> be
> useful here.

        Hmm. Yes. I hope R�my is involved in it. I would pay for :).
 
> But for now, you can:
> - Put any string you want in the logger prefix or suffix

        I can't do that, because the conf file will be the same for all servers and 
thus, the prefix and suffix will be the same, and there will be competition between 
servers when they will have to write their logs.

> - Extend org.apache.catalina.logger.FileLogger to support variables
> like
> you want via additional XML attributes on the <Logger> element

        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 use it in a 
stressed production environment, I hope tu keep it as standard (and maintainable) as 
possible. Also we didn't validate tomcat5 already, I would like to use such feature 
with tomcat4.

For now, I think about a definition file from which I build a machine specific conf 
file. But, I feel it a little bit overkill just for fixing filename problem.

        Note that if I were a developer, I would subscribe to the -devel list :).

        Thank you for your help,

                        Fran�ois.

 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to