Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 66944 invoked from network); 4 Jul 2008 13:42:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2008 13:42:26 -0000 Received: (qmail 20331 invoked by uid 500); 4 Jul 2008 13:42:25 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 20286 invoked by uid 500); 4 Jul 2008 13:42:25 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 20275 invoked by uid 99); 4 Jul 2008 13:42:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2008 06:42:24 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [213.208.226.13] (HELO charybdis.imc.nl) (213.208.226.13) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2008 13:41:34 +0000 X-IronPort-AV: E=Sophos;i="4.30,302,1212357600"; d="scan'208";a="14958483" Received: from smtp.nl.imc.local (HELO proxy02.nl.imc.local) ([192.168.144.31]) by charybdis.nl.imc.local with ESMTP; 04 Jul 2008 15:40:52 +0200 Received: from [192.168.180.51] (helen.nl.imc.local [192.168.180.51]) by proxy02.nl.imc.local (Postfix) with ESMTP id 38E5417700 for ; Fri, 4 Jul 2008 15:40:52 +0200 (CEST) Message-ID: <486E2863.1070802@imc.nl> Date: Fri, 04 Jul 2008 15:40:51 +0200 From: Giovanni Azua User-Agent: Thunderbird 1.5.0.7 (X11/20061008) MIME-Version: 1.0 To: Struts Developers List Subject: Re: logging issue (S2.1.x) References: <486B77E8.8050609@imc.nl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org thanks! :) Musachy Barroso wrote: > You can provide freemarker settings by adding a > "freemarker.properties" file to your classpath. I am guessing that you > could set the debug level for freemarker there. > > musachy > > On Wed, Jul 2, 2008 at 8:43 AM, Giovanni Azua wrote: > >> hi, >> >> Having configured my Web Server (e.g. Apache Tomcat or MyEclipse Tomcat) to >> the default Java Logging, I get the desired logging behavior for my Struts 2 >> app. >> >> After customizing the theme css_xhtml I get tons of DEBUG logging even >> though my level is set to SEVERE e.g. >> DEBUG 12150 [freemark] (): >> template/xhtml/tooltip.ftl[en_US,UTF-8,parsed] cached copy not yet stale; >> using cached. >> DEBUG 12150 [freemark] (): template/simple/text.ftl[en_US,UTF-8,parsed] >> cached copy not yet stale; using cached. >> DEBUG 12150 [freemark] (): template/simple/css.ftl[en_US,UTF-8,parsed] >> cached copy not yet stale; using cached. >> DEBUG 12150 [freemark] (): >> template/simple/scripting-events.ftl[en_US,UTF-8,parsed] cached copy not yet >> stale; using cached. >> DEBUG 12150 [freemark] (): >> template/simple/common-attributes.ftl[en_US,UTF-8,parsed] cached copy not >> yet stale; using cached. >> >> Somehow the default Freemarker Logging discovery does not work (depends on >> the indeterministic class loading) and the only way to fix this, is to have >> one of my ServletContextListener implementations doing a: >> >> // disable Freemarker logging SAGOPT-216 >> try >> { >> // not flexible nor beautiful >> freemarker.log.Logger.selectLoggerLibrary(Logger.LIBRARY_JAVA); >> } >> catch (ClassNotFoundException anException) >> { >> throw new RuntimeException(anException); >> } >> >> As an user I would say that the Struts framework is responsible to guarantee >> a consistent logging, including all of its dependencies ... >> >> Shall I open a ticket in Struts for this? so that Struts would configure >> Freemarker to the correct setting? maybe is a Freemarker bug ... this does >> not work: >> freemarker.log.Logger.selectLoggerLibrary(Logger.LIBRARY_AUTO); >> >> Best regards, >> Giovanni >> >> >> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org >> For additional commands, e-mail: dev-help@struts.apache.org >> >> >> > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org > For additional commands, e-mail: dev-help@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org