One other thing you could do is place the log4j.properties file at the
beginning of your classpath

Azeez

On Jan 19, 2008 9:15 PM, Afkham Azeez <[EMAIL PROTECTED]> wrote:

> Most probably the reason for this is that the system is picking up another
> log4j.properties file. Hence your changes are not taking effect. You
> should set the log4j.configuration system property to point to your file
> using one of the following methods:
> 1.  in code, System.setProperty("log4j.configuration",
> "C:\\axis2\\con\\log4j.properties");
> 2. -Dlog4j.configuration=C:\axis2\conf\log4j.properties in the bat or sh
> file
>
> HTH
> Azeez
>
>
> On Jan 19, 2008 12:50 AM, Sushil Dodake <[EMAIL PROTECTED]> wrote:
>
> > HI all i am using AXIS2 1.3 i am trying to enable logging in to a log
> > file ....
> > my probems are
> > 1. the log file is not created on machine even i set optins in the
> > LOG4j.properties
> > 2. Only INFO messeges are logged on console... DEBUG messges dont
> > appear.
> > i dont get what is the problem, my log4j.properties file looks as below.
> > even if i put a fully qualified path name for the
> > log4j.appender.LOGFILE.File attribute as
> > log4j.appender.LOGFILE.File=C:\logs\axis2.log it didnt work
> > can sombody help me.
> >
> > # Set root category priority to INFO and its only appender to CONSOLE.
> >
> > log4j.rootCategory=DEBUG, CONSOLE, LOGFILE
> >
> > #log4j.rootCategory=INFO, CONSOLE, LOGFILE
> >
> > # Set the enterprise logger priority to FATAL
> >
> > log4j.logger.org.apache.axis2.enterprise=FATAL
> >
> > log4j.logger.de.hunsicker.jalopy.io=FATAL
> >
> > log4j.logger.httpclient.wire.header=FATAL
> >
> > log4j.logger.org.apache.commons.httpclient=FATAL
> >
> > # CONSOLE is set to be a ConsoleAppender using a PatternLayout.
> >
> > log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
> >
> > log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
> >
> > log4j.appender.CONSOLE.layout.ConversionPattern=%d %-5p %c - %m%n
> >
> > # LOGFILE is set to be a File appender using a PatternLayout.
> >
> > log4j.appender.LOGFILE=org.apache.log4j.FileAppender
> >
> > log4j.appender.LOGFILE.File=axis2.log
> >
> > log4j.appender.LOGFILE.Append=true
> >
> > log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
> >
> > log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x -
> > %m%n
> >
>
>
>
> --
> Thanks
> Afkham Azeez
>
> http://www.wso2.org
> GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760




-- 
Thanks
Afkham Azeez

http://www.wso2.org
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760

Reply via email to