shouldn't that be

log4j.logger.voteLogger=DEBUG, vote

?? else where will it get voteLogger from?

> -----Original Message-----
> From: Derek Merren [mailto:[EMAIL PROTECTED]
> Sent: 18 August 2005 15:42
> To: tomcat-user@jakarta.apache.org
> Subject: Log4j writing to the same log file for different webapps
> 
> 
> Hi,
> 
> I have a problem with Log4j. I have several webapps running on Tomcat.
> They all use Log4j. The problem is that they all log to the same file.
> The file they log to depends on which app is used first. It seems to
> be picking up the settings from the log4j.properties file of the app
> that is run first and using those settings for all the other apps.
> 
> I have the Log4j.properties file for each application in the location
> -->  "tomcat/webapps/aplication1/WEB-INF/classes/"
> 
> Here is an example of one of the log4j.properties files -->
> 
> log4j.rootCategory=DEBUG, vote
> log4j.appender.vote=org.apache.log4j.ConsoleAppender
> log4j.appender.vote.layout=org.apache.log4j.PatternLayout
> log4j.appender.vote.layout.ConversionPattern=%d{dd MMM yyyy
> HH:mm:ss,SSS} %5p [%t] (%F:%L) - %m%n
> log4j.appender.vote=org.apache.log4j.RollingFileAppender
> log4j.appender.vote.File=/opt/tomcat/logs/vote.log
> log4j.appender.vote.MaxFileSize=100KB
> log4j.appender.vote.MaxBackupIndex=10
> 
> 
> An example of the code in the app is -->
> 
>         //Create logger
>       protected static Logger logger = Logger.getLogger("voteLogger");
> 
>       /**
>        * Constructor for the DataAccessObject 
>        */
>       public DataAccessObject() throws SQLException, NamingException {
>               logger.info("DataAccessObject() start 
> constructor method");
>               initialise();           
>       }
> 
> Any help would be very much appreciated.
> 
> Best Regards,
>   Derek
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


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

Reply via email to