I'm not sure of the exact syntax .. but try these combinations:
http://marc.theaimsgroup.com/?l=tomcat-dev&m=108808958716712&w=2
-Tim
Jean-Paul Le F�vre wrote:
I'm currently experimenting the new features of Tomcat 5.5.2 and more precisely the logging facility.
I must confess that I'm really upset by this implementation based on log4j.
- Log4j is a *very* complex package, difficult to master. IMO it does not make sense to use such a library : logging is meant to *help* developpers and administrators and not to cause headaches. The first principle of logging should be KISS (keept it stupid simple)
- There is no good documentation on how to use and configure Log4j. The short guide by G�lc� is not useful. The complete guide is not free (� la JBoss).
- I've spent a lot of time browsing the FAQ, the Wikis, turning around many interconnected sites but without finding answers to my questions.
- There is only one (actually 2) document : the tips written by Geoff Mottram.
Well, having given my opinion I feel better ;)
More specifically here is my question :
How to define my log4j properties to obtain what I had with the old plain Logger ?
<Context path="/try" docBase="try.war" override="true" swallowOutput="true"> <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="try-" suffix=".log" timestamp="true" /> </Context>
I've tried some variations of the following definitions but without success :
log4j.appender.L.File=/home/myself/soft/Tomcat/logs/try.log log4j.logger.org.apache.catalina.core.ContainerBase.Catalina.localhost.try=INFO,L
(the last component the path is not very clear "try" or "/try" or something else)
Basically I do not really care about levels but I do want a file by context.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
