You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by teeson <to...@volvo.com> on 2009/03/11 13:03:19 UTC
Struts 1.3.x and log4j
Hi all!
When adding log4j.jar to my web-project's classpath (using Eclipse v3.4.1)
and starting a Tomcat server (v6.0.18) I recieve a lot of Log4J
DEBUG-printouts in the console window. This happens before my startupservlet
runs that initiates Log4J in my application.
How can I turn this off?:confused:
I can't user "log4j.logger.org.apache = OFF" as suggested in some other
answers in this forum, since my log4j.properties file has not yet been read
at that time.
This is part of what is printed.
2009-03-11 12:41:52,641 [main] DEBUG Digester Pushing
params
2009-03-11 12:41:52,641 [main] DEBUG sax
ignorableWhitespace(
)
2009-03-11 12:41:52,641 [main] DEBUG sax
startElement(,var-name,var-name)
2009-03-11 12:41:52,641 [main] DEBUG Digester
Pushing body text ''
2009-03-11 12:41:52,641 [main] DEBUG Digester New
match='form-validation/formset/form/field/var/var-name'
2009-03-11 12:41:52,641 [main] DEBUG Digester Fire
begin() for CallParamRule[paramIndex=0, attributeName=null, from
stack=false]
2009-03-11 12:41:52,641 [main] DEBUG sax
characters(minlength)
2009-03-11 12:41:52,641 [main] DEBUG sax
endElement(,var-name,var-name)
2009-03-11 12:41:52,641 [main] DEBUG Digester
match='form-validation/formset/form/field/var/var-name'
2009-03-11 12:41:52,641 [main] DEBUG Digester
bodyText='minlength'
2009-03-11 12:41:52,641 [main] DEBUG Digester Fire
body() for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
2009-03-11 12:41:52,641 [main] DEBUG Digester
Popping body text ''
2009-03-11 12:41:52,641 [main] DEBUG Digester Fire
end() for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
2009-03-11 12:41:52,641 [main] DEBUG sax
ignorableWhitespace(
)
2009-03-11 12:41:52,641 [main] DEBUG sax
startElement(,var-value,var-value)
2009-03-11 12:41:52,641 [main] DEBUG Digester
Pushing body text ''
2009-03-11 12:41:52,641 [main] DEBUG Digester New
match='form-validation/formset/form/field/var/var-value'
2009-03-11 12:41:52,641 [main] DEBUG Digester Fire
begin() for CallParamRule[paramIndex=1, attributeName=null, from
stack=false]
2009-03-11 12:41:52,641 [main] DEBUG sax
characters(5)
2009-03-11 12:41:52,641 [main] DEBUG sax
endElement(,var-value,var-value)
2009-03-11 12:41:52,641 [main] DEBUG Digester
match='form-validation/formset/form/field/var/var-value'
2009-03-11 12:41:52,641 [main] DEBUG Digester
bodyText='5'
2009-03-11 12:41:52,641 [main] DEBUG Digester Fire
body() for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
2009-03-11 12:41:52,641 [main] DEBUG Digester
Popping body text ''
2009-03-11 12:41:52,641 [main] DEBUG Digester Fire
end() for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
2009-03-11 12:41:52,641 [main] DEBUG sax
ignorableWhitespace(
)
2009-03-11 12:41:52,641 [main] DEBUG sax
endElement(,var,var)
2009-03-11 12:41:52,641 [main] DEBUG Digester
match='form-validation/formset/form/field/var'
2009-03-11 12:41:52,641 [main] DEBUG Digester
bodyText=''
2009-03-11 12:41:52,641 [main] DEBUG Digester Fire
body() for CallMethodRule[methodName=addVarParam, paramCount=3,
paramTypes={java.lang.String, java.lang.String, java.lang.String}]
2009-03-11 12:41:52,641 [main] DEBUG Digester
Popping body text ''
2009-03-11 12:41:52,641 [main] DEBUG Digester Fire
end() for CallMethodRule[methodName=addVarParam, paramCount=3,
paramTypes={java.lang.String, java.lang.String, java.lang.String}]
2009-03-11 12:41:52,641 [main] DEBUG Digester Popping
params
2009-03-11 12:41:52,641 [main] DEBUG Digester
[CallMethodRule](0)minlength
2009-03-11 12:41:52,641 [main] DEBUG Digester
[CallMethodRule](1)5
2009-03-11 12:41:52,641 [main] DEBUG Digester
[CallMethodRule](2)null
2009-03-11 12:41:52,641 [main] DEBUG ConvertUtils Convert
string 'null' to class 'java.lang.String'
2009-03-11 12:41:52,641 [main] DEBUG ConvertUtils Using
converter org.apache.commons.beanutils.converters.StringConverter@3c0007
2009-03-11 12:41:52,641 [main] DEBUG Digester
[CallMethodRule]{form-validation/formset/form/field/var} Call
org.apache.commons.validator.Field.addVarParam(minlength/java.lang.String,5/java.lang.String,null/java.lang.String)
2009-03-11 12:41:52,641 [main] DEBUG MethodUtils Matching
name=addVarParam on class org.apache.commons.validator.Field
2009-03-11 12:41:52,641 [main] DEBUG MethodUtils Found
straight match: public void
org.apache.commons.validator.Field.addVarParam(java.lang.String,java.lang.String,java.lang.String)
2009-03-11 12:41:52,641 [main] DEBUG MethodUtils
isPublic:true
2009-03-11 12:41:52,641 [main] DEBUG sax
ignorableWhitespace(
--
View this message in context: http://www.nabble.com/Struts-1.3.x-and-log4j-tp22453731p22453731.html
Sent from the Struts - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Struts 1.3.x and log4j
Posted by Dave Newton <ne...@yahoo.com>.
Please ask this question on the struts-user mailing list. The struts-dev
list is for the development of Struts itself.
http://struts.apache.org/mail.html
In this case you may want to actually ask on a Log4J list.
Thanks,
Dave
teeson wrote:
> Hi all!
> When adding log4j.jar to my web-project's classpath (using Eclipse v3.4.1)
> and starting a Tomcat server (v6.0.18) I recieve a lot of Log4J
> DEBUG-printouts in the console window. This happens before my startupservlet
> runs that initiates Log4J in my application.
>
> How can I turn this off?:confused:
> I can't user "log4j.logger.org.apache = OFF" as suggested in some other
> answers in this forum, since my log4j.properties file has not yet been read
> at that time.
>
> This is part of what is printed.
>
> 2009-03-11 12:41:52,641 [main] DEBUG Digester Pushing
> params
> 2009-03-11 12:41:52,641 [main] DEBUG sax
> ignorableWhitespace(
> )
> 2009-03-11 12:41:52,641 [main] DEBUG sax
> startElement(,var-name,var-name)
> 2009-03-11 12:41:52,641 [main] DEBUG Digester
> Pushing body text ''
> 2009-03-11 12:41:52,641 [main] DEBUG Digester New
> match='form-validation/formset/form/field/var/var-name'
> 2009-03-11 12:41:52,641 [main] DEBUG Digester Fire
> begin() for CallParamRule[paramIndex=0, attributeName=null, from
> stack=false]
> 2009-03-11 12:41:52,641 [main] DEBUG sax
> characters(minlength)
> 2009-03-11 12:41:52,641 [main] DEBUG sax
> endElement(,var-name,var-name)
> 2009-03-11 12:41:52,641 [main] DEBUG Digester
> match='form-validation/formset/form/field/var/var-name'
> 2009-03-11 12:41:52,641 [main] DEBUG Digester
> bodyText='minlength'
> 2009-03-11 12:41:52,641 [main] DEBUG Digester Fire
> body() for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
> 2009-03-11 12:41:52,641 [main] DEBUG Digester
> Popping body text ''
> 2009-03-11 12:41:52,641 [main] DEBUG Digester Fire
> end() for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
> 2009-03-11 12:41:52,641 [main] DEBUG sax
> ignorableWhitespace(
> )
> 2009-03-11 12:41:52,641 [main] DEBUG sax
> startElement(,var-value,var-value)
> 2009-03-11 12:41:52,641 [main] DEBUG Digester
> Pushing body text ''
> 2009-03-11 12:41:52,641 [main] DEBUG Digester New
> match='form-validation/formset/form/field/var/var-value'
> 2009-03-11 12:41:52,641 [main] DEBUG Digester Fire
> begin() for CallParamRule[paramIndex=1, attributeName=null, from
> stack=false]
> 2009-03-11 12:41:52,641 [main] DEBUG sax
> characters(5)
> 2009-03-11 12:41:52,641 [main] DEBUG sax
> endElement(,var-value,var-value)
> 2009-03-11 12:41:52,641 [main] DEBUG Digester
> match='form-validation/formset/form/field/var/var-value'
> 2009-03-11 12:41:52,641 [main] DEBUG Digester
> bodyText='5'
> 2009-03-11 12:41:52,641 [main] DEBUG Digester Fire
> body() for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
> 2009-03-11 12:41:52,641 [main] DEBUG Digester
> Popping body text ''
> 2009-03-11 12:41:52,641 [main] DEBUG Digester Fire
> end() for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
> 2009-03-11 12:41:52,641 [main] DEBUG sax
> ignorableWhitespace(
> )
> 2009-03-11 12:41:52,641 [main] DEBUG sax
> endElement(,var,var)
> 2009-03-11 12:41:52,641 [main] DEBUG Digester
> match='form-validation/formset/form/field/var'
> 2009-03-11 12:41:52,641 [main] DEBUG Digester
> bodyText=''
> 2009-03-11 12:41:52,641 [main] DEBUG Digester Fire
> body() for CallMethodRule[methodName=addVarParam, paramCount=3,
> paramTypes={java.lang.String, java.lang.String, java.lang.String}]
> 2009-03-11 12:41:52,641 [main] DEBUG Digester
> Popping body text ''
> 2009-03-11 12:41:52,641 [main] DEBUG Digester Fire
> end() for CallMethodRule[methodName=addVarParam, paramCount=3,
> paramTypes={java.lang.String, java.lang.String, java.lang.String}]
> 2009-03-11 12:41:52,641 [main] DEBUG Digester Popping
> params
> 2009-03-11 12:41:52,641 [main] DEBUG Digester
> [CallMethodRule](0)minlength
> 2009-03-11 12:41:52,641 [main] DEBUG Digester
> [CallMethodRule](1)5
> 2009-03-11 12:41:52,641 [main] DEBUG Digester
> [CallMethodRule](2)null
> 2009-03-11 12:41:52,641 [main] DEBUG ConvertUtils Convert
> string 'null' to class 'java.lang.String'
> 2009-03-11 12:41:52,641 [main] DEBUG ConvertUtils Using
> converter org.apache.commons.beanutils.converters.StringConverter@3c0007
> 2009-03-11 12:41:52,641 [main] DEBUG Digester
> [CallMethodRule]{form-validation/formset/form/field/var} Call
> org.apache.commons.validator.Field.addVarParam(minlength/java.lang.String,5/java.lang.String,null/java.lang.String)
> 2009-03-11 12:41:52,641 [main] DEBUG MethodUtils Matching
> name=addVarParam on class org.apache.commons.validator.Field
> 2009-03-11 12:41:52,641 [main] DEBUG MethodUtils Found
> straight match: public void
> org.apache.commons.validator.Field.addVarParam(java.lang.String,java.lang.String,java.lang.String)
> 2009-03-11 12:41:52,641 [main] DEBUG MethodUtils
> isPublic:true
> 2009-03-11 12:41:52,641 [main] DEBUG sax
> ignorableWhitespace(
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org