import org.apache.log4j.Logger; public class BeyondFuBarAction extends FuBarAction { private static final Logger LOG = Logger.getLogger(BeyondFuBarAction.class);
/** override super */ public String execute() throws Exception { LOG.error("beyond FUBAR"); 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 14:36:49 -0700 > From: [EMAIL PROTECTED] > To: user@struts.apache.org; [EMAIL PROTECTED] > Subject: Re: Tons of Could not find property messages - log4j is not helping? > > Nope, I'm having the same problem. I've set those two categories, but still > get lots of junk in the logs. > (*Chris*) > > On Fri, Oct 17, 2008 at 2:29 PM, 928572663 <[EMAIL PROTECTED]> wrote: > > > Yeah I had tried that but they are still getting through. I must have some > > other config issue with log4j. > > > > -John > > > > > > Pierre Thibaudeau wrote: > > > >> Is there a way to determine which logging properties need to be configured > >>> to remove / change all of the struts logging? > >>> > >>> I haven't seen a confluence page on that topic yet. > >>> > >>> i.e., if I wanted to set the whole logging level for all of struts2 to > >>> ERROR, how would I find the property names to set? > >>> > >>> > >> Well, given that the whole of Struts2 fits under two hierarchies > >> (org.apache.struts2.* and com.opensymphony.*), I would think that the > >> following two lines would do the trick: > >> > >> log4j.logger.org.apache.struts2=error, stdout > >> log4j.logger.com.opensymphony=error, stdout > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > _________________________________________________________________ Stay organized with simple drag and drop from Windows Live Hotmail. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_102008