Hi 
Its working for me now. But am having problems wrt
displaying INFO, WARN level messages.
Only DEBUG level messages are displayed on console and
the file.
I am attaching the Props file as well.

Thanks for help.
sudhi
--- Ajay Dhanawade <[EMAIL PROTECTED]> wrote:
> HI Sudhi,
> 
> I am not so sure of the properties file but I had
> used xml file and it works 
> fine. I have put the logcfg.xml file in the home
> directory of weblogic which 
> is c:\bea\wlserver. Can u try doing that?
> 
> CIAO
> Ajay
> 
> 
> >From: sudhendra seshachala <[EMAIL PROTECTED]>
> >Reply-To: "Log4J Users List"
> <[EMAIL PROTECTED]>
> >To: Log4J Users List
> <[EMAIL PROTECTED]>
> >Subject: Re: problem configuring Log4j for Weblogic
> 6.1
> >Date: Mon, 26 Aug 2002 12:16:10 -0700 (PDT)
> >
> >Why cant I see debuging  statements while parsing
> >log4j.properties, even after setting log4j.debug=
> >true.
> >
> >Can anyone help me on this.
> >
> >thanks
> >sudhi
> >--- Ceki Gülcü <[EMAIL PROTECTED]> wrote:
> > >
> > > The warning message says otherwise.
> > >
> > > At 08:25 26.08.2002 -0700, you wrote:
> > > >I am loading this property file before doing
> > > anything
> > > >else. This is the first thing being loaded.
> > > >
> > > >thanks
> > > >sudhi
> > > >--- Ceki Gülcü <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > >
> > > > > It looks that log4j is configured using your
> > > > > configuration file. However,
> > > > > you or some other code is attempting to use
> > > log4j
> > > > > prior to its
> > > > > configuration, hence the warning message.
> > > > >
> > > > > At 07:20 26.08.2002 -0700, you wrote:
> > > > >
> > > > > >Hi All,
> > > > > >I am having problems configuring log4j with
> > > > > Weblogic
> > > > > >6.1.
> > > > > >I have the configuration for log4j as
> follows
> > > in a
> > > > > >file called generic properties which get
> loaded
> > > by
> > > > > a
> > > > > >startup class
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
>############################################################################
> > > > > ># log4j configuration
> > > > >
> > > >
> > >
> >
>
>############################################################################
> > > > > >
> > > > > >log4j.debug=true
> > > > > >#log4j.disable=fatal
> > > > > >log4j.additivity.epeople=true
> > > > > >
> > > > > >log4j.rootCategory=DEBUG,stdout, R
> > > > >
> > > >
> > >
> >
>
>log4j.appender.R=org.apache.log4j.RollingFileAppender
> > > > >
> > > >
> > >
> >
>
>log4j.appender.R.File=c:/bea/wlserver6.1/config/sudhendras/logger.log
> > > > > >log4j.appender.R.MaxFileSize=100KB
> > > > > >log4j.appender.R.MaxBackupIndex=1
> > > > >
> > > >
> > >
> >
>
>log4j.appender.R.layout=org.apache.log4j.PatternLayout
> > > > >
> >log4j.appender.R.layout.ConversionPattern=%d
> > > %-5p
> > > > > >%c{1} %M - %m%n
> > > > >
> > > >
> > >
> >
>
>log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> > > > >
> > > >
> > >
> >
>
>log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> > > > > >
> > > > > >log4j.logger.epeople=DEBUG
> > > > > >
> > > > > >These properties gets loaded as a
> properties in
> > > > > >startup class as follows.
> > > > > >
> > > > > >import java.io.*;
> > > > > >
> > > > > >import java.util.Properties;
> > > > > >import
> org.apache.log4j.xml.DOMConfigurator;
> > > > > >import org.apache.log4j.*;
> > > > > >import weblogic.common.*;
> > > > > >
> > > > > >import com.epeople.config.*;
> > > > > >
> > > > > >/**
> > > > > >  * Insert the type's description here.
> > > > > >  * Creation date: (12/5/00 11:12:13 AM)
> > > > > >  * @author: Administrator
> > > > > >  */
> > > > > >public class ApacheLoggerStartUp implements
> > > > > >weblogic.common.T3StartupDef {
> > > > > >         /**
> > > > > >         * ApacheLoggerStartUp constructor
> > > comment.
> > > > > >         */
> > > > > >         private static final String
> > > > > m_logConfigurationFile
> > > > > >="c:\\ep\\properties\\log4j.properties";
> > > > > >         public ApacheLoggerStartUp()
> > > > > >         {
> > > > > >                 super();
> > > > > >         }
> > > > > >         /**
> > > > > >         * setServices method comment.
> > > > > >         */
> > > > > >         public void
> > > > > setServices(weblogic.common.T3ServicesDef
> > > > > >arg1) {
> > > > > >         }
> > > > > >         /**
> > > > > >         * startup method comment.
> > > > > >         */
> > > > > >         public String startup(String arg1,
> > > > > >java.util.Hashtable prop) throws Exception
> > > > > >         {
> > > > > >                 String resource = null;
> > > > > >                 try
> > > > > >                 {
> > > > > >                     Properties props
> > > > > =NWProperties.getInstance();
> > > > > >                    
> Logger.init(props,null);
> > > > > >                     return "Log4j
> > > configuration
> > > > > initialized.";
> > > > > >
> > > > > >                 }
> > > > > >                 catch (Exception e)
> > > > > >                 {
> > > > > >                   
> System.out.println("Cannot
> > > open
> > > > > config file: " +
> > > > > >resource);
> > > > > >                    return "Log4j
> configuration
> > > > > failed to
> > > > > >initialized.";
> > > > > >
> > > > > >                 }
> > > > > >         }
> > > > > >}
> > > > > >
> > > > > >can anyone help me on this.
> > > > > >I get the most dreaded
> > > > > >"log4j:WARN No appenders could be found for
> > > logger
> > > > > >(epeople).
> > > > > >log4j:WARN Please initialize the log4j
> system
> > > > > >properly."
> > > > > >
> > > > > >The sample output is as follows
> > > > > >Starting WebLogic Server ....
> 
=== message truncated ===


=====
God Bless America

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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

Reply via email to