you'll need to be more specific about which categories of messages you want to log File? SMTP? JDBC? categories are listed: http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Appender.html
you'll also need to be specific about which level of messages you want and dont want http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Category.html#setLevel where ALL means everything including any/all messages you categorise as obnoxious OFF turns off all logging http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html Provide more specifics if you want specific help on operational characteristics, code and or environment for log4j Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Fri, 17 Oct 2008 17:09:43 -0700 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: Re: Tons of Could not find property messages - log4j is not helping? > > Wow, I have no idea where you're going with this. So far you've shown code > that can write more messages to a log and find out the name of the log > file. How does this help in turning off the obnoxious messages that the > framework is logging that aren't in the obvious categories? > (*Chris*) > > On Fri, Oct 17, 2008 at 4:42 PM, Martin Gainty <[EMAIL PROTECTED]> wrote: > > > > > very good dave.. > > > > assuming your log4j configuration has a FILELOG appender > > > > <appender name="FILELOG" class="org.apache.log4j.RollingFileAppender"> > > > > //Logger extends Category so use getAppender to get the Apender object > > Appender appender=log.getAppender("FILELOG"); > > //finally to get the actual name of the log > > String NameOfLogFile=appender.fileName; > > > > ... > > Martin > > ______________________________________________ > > Disclaimer and confidentiality note > > Everything in this e-mail and any attachments relates to the official > > business of Sender. This transmission is of a confidential nature and Sender > > does not endorse distribution to any party other than intended recipient. > > Sender does not necessarily endorse content contained within this > > transmission. > > > > > > > Date: Fri, 17 Oct 2008 15:55:18 -0700 > > > From: [EMAIL PROTECTED] > > > Subject: Re: Tons of Could not find property messages - log4j is not > > helping? > > > To: user@struts.apache.org > > > > > > --- On Fri, 10/17/08, Chris Pratt wrote: > > > > Hmmm, I don't get it Martin, how does writing something > > > > to the log prevent things from getting written to the log? > > > > > > Reverse psychology. > > > > > > Dave > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > _________________________________________________________________ > > Want to read Hotmail messages in Outlook? The Wordsmiths show you how. > > > > http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008<http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns%2120EE04FBC541789%21167.entry?ocid=TXT_TAGLM_WL_hotmail_092008> > > _________________________________________________________________ Want to read Hotmail messages in Outlook? The Wordsmiths show you how. http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008