# was in the next blank line in my file.I have removed that now and have 
also added log4j.debug = true to the file.But stiil getting the
same message

Thanks for all your help

sunita


>From: Swami Iyer <[EMAIL PROTECTED]>
>Reply-To: "Log4J Users List" <[EMAIL PROTECTED]>
>To: "'Log4J Users List'" <[EMAIL PROTECTED]>
>Subject: RE: WARN No appenders could be found for logger
>Date: Wed, 14 Aug 2002 14:26:28 -0400
>
>Please remove the # in the root category line and try it out.
>
>Swami
>
> > -----Original Message-----
> > From: Bhangale, Bhushan [mailto:[EMAIL PROTECTED]]
> > Sent: August 14, 2002 2:27 PM
> > To: 'Log4J Users List'
> > Subject: RE: WARN No appenders could be found for logger
> >
> >
> > Check what the log4j is doing be setting log4j.debug property to true.
> >
> > -----Original Message-----
> > From: sunita agrawal [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 14, 2002 2:13 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: WARN No appenders could be found for logger
> >
> >
> >
> >        Thanks for reply .I have wrote
> > log4j.category.mycategory=DEBUG, R2
> >
> >   at the end of the file  but   still getting the same
> > message. I am using
> > servlet to initialize the log4j propertyconfigurator.
> >
> > My application was logging messages fine earlier with only
> > one file appender
> >
> > and the  rootCategory.i tried with few  other properties file
> > also but
> > getting same message.
> >
> > Thanks,
> > ag
> >
> >
> >
> > >From: Swami Iyer <[EMAIL PROTECTED]>
> > >Reply-To: "Log4J Users List" <[EMAIL PROTECTED]>
> > >To: "'Log4J Users List'" <[EMAIL PROTECTED]>
> > >Subject: RE: WARN No appenders could be found for logger
> > Date: Wed, 14
> > >Aug
> > >2002 13:32:41 -0400
> > >
> > >Your log4j.category.mycategory=DEBUG, R2 must be after the
> > definitions
> > >of the appender R2.
> > >
> > >Swami
> > >
> > > > -----Original Message-----
> > > > From: sunita agrawal [mailto:[EMAIL PROTECTED]]
> > > > Sent: August 14, 2002 1:26 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: WARN No appenders could be found for logger
> > > >
> > > >
> > > > I am getting errors:
> > > > log4j:WARN No appenders could be found for logger (mycategory).
> > > > log4j:WARN Please initialize the log4j system properly.
> > > >
> > > >
> > > > Following is the properties file that I am using :
> > > > log4j.rootCategory=DEBUG, R #
> > > > log4j.appender.R=org.apache.log4j.RollingFileAppender
> > > > log4j.appender.R.File=c:/examples/log4jlog/app1.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.category.mycategory=DEBUG, R2
> > > >
> > > > log4j.appender.R2=org.apache.log4j.RollingFileAppender
> > > > log4j.appender.R2.File=E:/bea/wlserver6.1/samples/examples/log
> > > > 4jlog/app2.log
> > > >
> > > > log4j.appender.R2.MaxFileSize=100KB
> > > > log4j.appender.R2.MaxBackupIndex=1
> > > > log4j.appender.R2.layout=org.apache.log4j.PatternLayout
> > > > log4j.appender.R2.layout.ConversionPattern=%d %-5p %c{1} %M - %m%n
> > > >
> > > >
> > > > Following is the code from the  bean  Foo :
> > > >
> > > > public final static Category cat =
> > > > Category.getInstance("mycategory");
> > > >
> > > > ..
> > > > cat.info(" starting ...");
> > > > .
> > > > cat.debug("REsult: " );
> > > >
> > > >
> > > > Could you please help me figure out what's wrong with above code.
> > > >
> > > > Thanks,
> > > > ag
> > > >
> > > >
> > > >
> > > >
> > > > _________________________________________________________________
> > > > Send and receive Hotmail on your mobile device:
> > > > http://mobile.msn.com
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > > <mailto:[EMAIL PROTECTED]>
> > > > For additional commands, e-mail:
> > > > <mailto:[EMAIL PROTECTED]>
> > > >
> > >
> > >--
> > >To unsubscribe, e-mail:
> > ><mailto:[EMAIL PROTECTED]>
> > >For additional commands, e-mail:
> > ><mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> > _________________________________________________________________
> > MSN Photos is the easiest way to share and print your photos:
> > http://photos.msn.com/support/worldwide.aspx
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
> > "The information in this e-mail, and any attachment therein, is
> > confidential and for use by the addressee only. If you are not the
> > intended recipient, please return the e-mail to the sender and delete
> > it from your computer. Although The Bank of New York attempts to
> > sweep e-mail and attachments for viruses, it does not guarantee that
> > either are virus-free and accepts no liability for any damage
> > sustained
> > as a result of viruses."
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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

Reply via email to