You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by nodje <no...@gmail.com> on 2009/01/05 09:12:46 UTC
Turning freemarker logging off
Hi,
I'm using Struts 2.1.2. I've configured log4j logging with the following
line
log4j.logger.com.opensymphony.xwork2.ognl=ERROR
in order to turn off what seemed to be xwork logging.
However, I'm still getting hundreds of line like these:
Could not find template in cache, creating new one;
id=[template/css_xhtml/form.ftl[en_US,UTF-8,parsed] ]
DEBUG [945512262@qtp0-2] cache.debug:81 | Compiling FreeMarker template
template/css_xhtml/form.ftl[en_US,UTF-8,parsed] from
jar:file:/Users/nodje/Documents/project/allence/alpha2/target/alpha2/WEB-INF/lib/struts2-core-2.1.2.jar!/template/css_xhtml/form.ftl
DEBUG [945512262@qtp0-2] cache.debug:81 | Could not find template in cache,
creating new one;
id=[template/css_xhtml/form-validate.ftl[en_US,UTF-8,parsed] ]
....
What I don't understand is from which class this logging comes from:
cache.debug:81 should indicate a class and the calling method. But in
"cache.debug:81" 'cache' is not a class. There must be some centralized
system used to perfom logging.
Anyone knows where this logging comes from?
cheers
-nodje
--
View this message in context: http://www.nabble.com/Turning-freemarker-logging-off-tp21287074p21287074.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Turning freemarker logging off
Posted by harshavs <ha...@gmail.com>.
Turning off package freemarker or freemarker.cache would do the needful I
guess.
nodje wrote:
>
> Hi,
>
> I'm using Struts 2.1.2. I've configured log4j logging with the following
> line
> log4j.logger.com.opensymphony.xwork2.ognl=ERROR
>
> in order to turn off what seemed to be xwork logging.
>
> However, I'm still getting hundreds of line like these:
> Could not find template in cache, creating new one;
> id=[template/css_xhtml/form.ftl[en_US,UTF-8,parsed] ]
> DEBUG [945512262@qtp0-2] cache.debug:81 | Compiling FreeMarker template
> template/css_xhtml/form.ftl[en_US,UTF-8,parsed] from
> jar:file:/Users/nodje/Documents/project/allence/alpha2/target/alpha2/WEB-INF/lib/struts2-core-2.1.2.jar!/template/css_xhtml/form.ftl
> DEBUG [945512262@qtp0-2] cache.debug:81 | Could not find template in
> cache, creating new one;
> id=[template/css_xhtml/form-validate.ftl[en_US,UTF-8,parsed] ]
> ....
>
> What I don't understand is from which class this logging comes from:
> cache.debug:81 should indicate a class and the calling method. But in
> "cache.debug:81" 'cache' is not a class. There must be some centralized
> system used to perfom logging.
>
> Anyone knows where this logging comes from?
>
> cheers
> -nodje
>
--
View this message in context: http://www.nabble.com/Turning-freemarker-logging-off-tp21287074p21623600.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Turning freemarker logging off
Posted by ricoq <ri...@yahoo.com>.
nodje wrote:
>
> Hi,
>
> I'm using Struts 2.1.2. I've configured log4j logging with the following
> line
> log4j.logger.com.opensymphony.xwork2.ognl=ERROR
>
> in order to turn off what seemed to be xwork logging.
>
> However, I'm still getting hundreds of line like these:
> Could not find template in cache, creating new one;
> id=[template/css_xhtml/form.ftl[en_US,UTF-8,parsed] ]
> DEBUG [945512262@qtp0-2] cache.debug:81 | Compiling FreeMarker template
> template/css_xhtml/form.ftl[en_US,UTF-8,parsed] from
> jar:file:/Users/nodje/Documents/project/allence/alpha2/target/alpha2/WEB-INF/lib/struts2-core-2.1.2.jar!/template/css_xhtml/form.ftl
> DEBUG [945512262@qtp0-2] cache.debug:81 | Could not find template in
> cache, creating new one;
> id=[template/css_xhtml/form-validate.ftl[en_US,UTF-8,parsed] ]
> ....
>
> What I don't understand is from which class this logging comes from:
> cache.debug:81 should indicate a class and the calling method. But in
> "cache.debug:81" 'cache' is not a class. There must be some centralized
> system used to perfom logging.
>
> Anyone knows where this logging comes from?
>
> cheers
> -nodje
>
--
View this message in context: http://old.nabble.com/Turning-freemarker-logging-off-tp21287074p29472827.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Turning freemarker logging off
Posted by ricoq <ri...@yahoo.com>.
In your log4j.properties file add the following line:
log4j.logger.freemarker.beans=WARN, CA
This assigns the level of WARNING to the freemarker.beans package only. All
other packages will inherit the root logger level (usually set to DEBUG).
You can set other packages as well, like:
log4j.logger.freemarker.cache=INFO, CA
log4j.logger.com.foo.bar=ERROR, CA
You do not need to change any java code.
Hope this helps.
--
View this message in context: http://old.nabble.com/Turning-freemarker-logging-off-tp21287074p29472948.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org