cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r526898 - /cocoon/trunk/blocks/cocoon-asciiart/cocoon-asciiart-impl/src/main/java/org/apache/cocoon/generation/asciiart/AsciiArtSVGGenerator.java
Date Mon, 09 Apr 2007 19:53:18 GMT
Author: felixk
Date: Mon Apr  9 12:53:17 2007
New Revision: 526898

URL: http://svn.apache.org/viewvc?view=rev&rev=526898
Log:
fix logger

Modified:
    cocoon/trunk/blocks/cocoon-asciiart/cocoon-asciiart-impl/src/main/java/org/apache/cocoon/generation/asciiart/AsciiArtSVGGenerator.java

Modified: cocoon/trunk/blocks/cocoon-asciiart/cocoon-asciiart-impl/src/main/java/org/apache/cocoon/generation/asciiart/AsciiArtSVGGenerator.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-asciiart/cocoon-asciiart-impl/src/main/java/org/apache/cocoon/generation/asciiart/AsciiArtSVGGenerator.java?view=diff&rev=526898&r1=526897&r2=526898
==============================================================================
--- cocoon/trunk/blocks/cocoon-asciiart/cocoon-asciiart-impl/src/main/java/org/apache/cocoon/generation/asciiart/AsciiArtSVGGenerator.java
(original)
+++ cocoon/trunk/blocks/cocoon-asciiart/cocoon-asciiart-impl/src/main/java/org/apache/cocoon/generation/asciiart/AsciiArtSVGGenerator.java
Mon Apr  9 12:53:17 2007
@@ -28,6 +28,8 @@
 import java.util.Locale;
 import java.util.Map;
 import org.apache.avalon.framework.parameters.Parameters;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.cocoon.CascadingIOException;
 import org.apache.cocoon.ProcessingException;
 import org.apache.cocoon.caching.CacheableProcessingComponent;
@@ -51,6 +53,8 @@
     extends AbstractGenerator
     implements CacheableProcessingComponent {
 
+    static final Log log = LogFactory.getLog(AsciiArtSVGGenerator.class);    
+
     /**
      * The input source
      */
@@ -153,8 +157,8 @@
     public void generate()
     throws IOException, SAXException, ProcessingException {
         try {
-            if (getLogger().isDebugEnabled()) {
-                getLogger().debug("Source " + super.source +
+            if (log.isDebugEnabled()) {
+                log.debug("Source " + super.source +
                                   " resolved to " + this.inputSource.getURI());
             }
 



Mime
View raw message