Hi, If you just want to log your own messages, you 'll have to declare categories (see 1st line!):
log4j.category.HighLevelAction=DEBUG, A2 log4j.rootLogger=ERROR, A2 log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender log4j.appender.A2.Threshold=DEBUG log4j.appender.A2.file=npi_log log4j.appender.A2.append=true log4j.appender.A2.layout=org.apache.log4j.PatternLayout log4j.appender.A2.layout.ConversionPattern=%d [%t] %-5p %c - %m%n This should log your messages with level debug, info, warn and fatal to your log-file. Messages from other classes with level error and fatal will also be logged to your file. To avoid this declare a secont appender and link this to the root-category. Helmut > -----Ursprüngliche Nachricht----- > Von: Vijay K Anand [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 4. Juli 2005 14:55 > An: Struts Users Mailing List > Betreff: Re: SV: log4j log > > Hi > > Thanks for replying > > if i say so , it logs everything that is happening behind > I dont want anything except i say explictly by logger.debug("test"); > > [EMAIL PROTECTED] wrote: > > >Hi > > > >log4j.rootLogger=ERROR, A2 <<<--- Change this one to Debug, A2 > > > >-----Opprinnelig melding----- > >Fra: Vijay K Anand [mailto:[EMAIL PROTECTED] > >Sendt: 4. juli 2005 14:48 > >Til: user@struts.apache.org > >Emne: log4j log > > > > > >Hi > >Here goes my log4j property file > > > >log4j.rootLogger=ERROR, A2 > >log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender > >log4j.appender.A2.Threshold=DEBUG > >log4j.appender.A2.file=npi_log > >log4j.appender.A2.append=true > >log4j.appender.A2.layout=org.apache.log4j.PatternLayout > >log4j.appender.A2.layout.ConversionPattern=%d [%t] %-5p %c - %m%n > > > >here is the code where i want to log > > > >static Logger logger = > >Logger.getLogger(HighLevelAction.class.getClass()); > > > >logger.debug("test"); > > > >th eproblem is : it is not logging anything > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > >* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > * * * * * * * * > > > >This email with attachments is solely for the use of the > individual or > >entity to whom it is addressed. Please also be aware that > the DnB NOR Group > >cannot accept any payment orders or other legally binding > correspondence with > >customers as a part of an email. > > > >This email message has been virus checked by the virus programs used > >in the DnB NOR Group. > > > >* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > * * * * * * * * > > > > > >--------------------------------------------------------------------- > >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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]