Quoting zafer bayraktar <***@gmail.com>:
> Yes, the file log4j-1.2.8.jar is in WEB-INF/lib.
> I don't use log4j.xml, it is log4j.properties.
>
> When I copy log4j.properities file to WEBINF/classes there exists no change
> but when I copy this file to directory "conf" it started logging but not the
> file I mentioned in the log4j.properities file. It is logging to the file
> stdout.log.
stdout.log is simply the default log file used by the windows service for
anything logged to System.out. That would include anything that goes to the
console. That has nothing to do with log4j.properties or where you put it.
Again, please try usin log4j.xml in your app. Your app is almost certainly
finding a log4j.xml somewhere on the classpath, whether it is in a directory on
the classpath or inside a jar (in the default package, of course). Until you
try this, I don't have much more to say.
Jake
> Log file is below:
>
>
> # Set root category priority to INFO and its only appender to CONSOLE.
> #log4j.rootCategory=INFO, CONSOLE
> log4j.rootCategory=INFO, LOGFILE
>
> # Set the enterprise logger category to FATAL and its only appender to
> CONSOLE.
> log4j.logger.org.apache.axis.enterprise=INFO, CONSOLE
>
> # CONSOLE is set to be a ConsoleAppender using a PatternLayout.
> log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
> log4j.appender.CONSOLE.Threshold=INFO
> log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
> log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n
>
> # LOGFILE is set to be a File appender using a PatternLayout.
> log4j.appender.LOGFILE=org.apache.log4j.DailyRollingFileAppender
> log4j.appender.LOGFILE.DatePattern='.'yyyy-MM-dd
> log4j.appender.LOGFILE.File=AxisServiceDeskWS.log
> log4j.appender.LOGFILE.Append=true
> log4j.appender.LOGFILE.Threshold=INFO
> log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
> log4j.appender.LOGFILE.layout.ConversionPattern=[%d{ISO8601}]%5p %c
> (%F:%M:%L) - %m%n
>
>
>
> On 12/30/05, Jacob Kjome <***@visi.com> wrote:
> >
> > At 01:26 PM 12/30/2005 +0200, you wrote:
> > > Hi,
> > >I have a problem configuring log4j.
> > >I have installed two of the Tomcat versions. One from zip file and other
> > >from exe (as a service version).
> > >The log4j configuration of tomcat from zip file is successfully running.
> > >But there is some problem configuring for tomcat from exe. I copied
> > >log4j.properities file to WEBINF/classes but there is no any change, the
> > log
> > >file I stated in the properties file is not created. What any other
> > things
> > >do I have to do?
> > >Thanx.
> >
> > Is log4j.jar in WEB-INF/lib? Also, is there a log4j.xml anywhere on the
> > classpath that your app can see? Log4j picks up log4j.xml in preference
> > to
> > log4j.properties. Plus, log4j.xml provides more functionality than
> > log4j.properties. This is why I always recommend the XML configuration
> > rather than the properties configuration. It reduces the possible issues
> > you can have.
> >
> > Jake
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-***@logging.apache.org
> > For additional commands, e-mail: log4j-user-***@logging.apache.org
> >
> >
>