Any suggestions on how to reduce the amount of struts logging?
928572663 wrote:
I have a log4j.xml file located in my /src directory in my webapp
(Dynamic Web Project from eclipse ganymede).
?xml version=1.0 encoding=UTF-8?
!DOCTYPE log4j:configuration SYSTEM log4j.dtd
log4j:configuration
You're probably not editing the log4j config that is picked up at
runtime. Maybe your server has it's own config (since you're saying
that log4j is in the appserver classpath)?
Nils-H
On Mon, Oct 20, 2008 at 8:47 PM, 928572663 [EMAIL PROTECTED] wrote:
Any suggestions on how to reduce the amount
Personally, I seem to be able to control everything but these messages, so
I'm fairly confident that the configuration is in the right place.
(*Chris*)
On Mon, Oct 20, 2008 at 12:12 PM, Nils-Helge Garli Hegvik
[EMAIL PROTECTED]wrote:
You're probably not editing the log4j config that is picked
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
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
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
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.
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
--- On Fri, 10/17/08, Martin Gainty wrote:
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 {
I can't find the original thread w/ the log msgs.
There's also the ognl logger; log4j.logger.ognl=XXX (or however Log4J does it,
if you're using Log4J).
Dave
--- On Fri, 10/17/08, Chris Pratt [EMAIL PROTECTED] wrote:
From: Chris Pratt [EMAIL PROTECTED]
Subject: Re: Tons of Could not find
Hmmm, I don't get it Martin, how does writing something to the log prevent
things from getting written to the log?
(*Chris*)
On Fri, Oct 17, 2008 at 3:05 PM, Martin Gainty [EMAIL PROTECTED] wrote:
import org.apache.log4j.Logger;
public class BeyondFuBarAction extends FuBarAction {
--- 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]
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
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
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
I have a log4j.xml file located in my /src directory in my webapp
(Dynamic Web Project from eclipse ganymede).
?xml version=1.0 encoding=UTF-8?
!DOCTYPE log4j:configuration SYSTEM log4j.dtd
log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/;
appender name=stdout
Hi!,
if you want to silence those annoing messages try the following logger:
log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack
if you were using a properties file
log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=NONE, stdout
with the xml should be something similar.
Have a good day
I saw another thread about this already, and the suggestions were to
turn off dev mode (I'm not running devmode), or to filter them out in my
logging mechanism.
I have log4j.xml in my .war file, and I use it to control logging in all
my classes, but I can't find the right magical incantation
18 matches
Mail list logo