I don't understand what you mean by that.

I use an xml config with Tomcat.  If you just delete properties file
and put an xml file in the same directory it should work fine. 
(Assuming you are using automatic config.)

On 9/22/05, David Thielen <[EMAIL PROTECTED]> wrote:
> Hello;
>
> Thank you. I just tried that but any log4j.logger.net settings then get
> applied to both.
>
> Thanks - dave
>
> Ps - and Tomcat won't work with the xml config files for some reason...
>
>
> -----Original Message-----
> From: James Stauffer [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 22, 2005 10:09 AM
> To: Log4J Users List
> Subject: Re: Problem with duplicate log entries - under Tomcat
>
> I don't think you can have two log4j.rootLogger entries.  I don't use
> the properties format (i use xml) so I am not sure how it should be
> done.  Possibly something like:
> log4j.rootLogger=warn, stdout, tomcat
>
> On 9/22/05, David Thielen <[EMAIL PROTECTED]> wrote:
> > And if possible I would really like 2 files, one for net.windward(info)
> and
> > one for everything else (warn).
> >
> > Thanks - dave
> >
> >
> > -----Original Message-----
> > From: David Thielen [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 22, 2005 9:17 AM
> > To: [email protected]
> > Subject: Problem with duplicate log entries - under Tomcat
> >
> > Hello;
> >
> > I am trying to do the following:
> >
> > 1) Send tomcat info logs and other warn logs to the console
> > 2) Send net.windward info and other warn logs to a file.
> >
> > This is my log file - it is not writing anything to the console and it is
> > writing all file entries twice. Also it does not rename the file at
> > midnight. HELP!
> >
> > log4j.rootLogger=warn, stdout
> > log4j.rootLogger=warn, tomcat
> >
> > log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> > log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> > log4j.appender.stdout.layout.ConversionPattern=%p %t %c - %m%n
> > log4j.logger.org.apache.catalina=INFO, stdout
> >
> > log4j.appender.tomcat=org.apache.log4j.DailyRollingFileAppender
> > log4j.appender.tomcat.File=${catalina.home}/logs/tomcat.log
> > log4j.appender.tomcat.layout=org.apache.log4j.PatternLayout
> >
> > log4j.appender.tomcat.layout.ConversionPattern=%d{HH:mm:ss.SSS} %p %t %c -
> > %m%n log4j.logger.org.apache.catalina=WARN, tomcat
> > log4j.logger.net.windward=INFO, tomcat
> >
> > thanks - dave
> >
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> James Stauffer
> Are you good? Take the test at http://www.livingwaters.com/good/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

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

Reply via email to