diff options
author | Glen Mazza <gmazza@apache.org> | 2004-03-31 10:55:07 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2004-03-31 10:55:07 +0000 |
commit | a054ab3b7e22af6c163b5d68c04bf5868958a59e (patch) | |
tree | 158b4e54cf28f6dd1926de530309ffc2b1ceb3d4 /src/java/org/apache/fop/apps/Fop.java | |
parent | b0ef412c716311de35850f0d6ae56a1b7f7d8acf (diff) | |
download | xmlgraphics-fop-a054ab3b7e22af6c163b5d68c04bf5868958a59e.tar.gz xmlgraphics-fop-a054ab3b7e22af6c163b5d68c04bf5868958a59e.zip |
PR:
Obtained from:
Submitted by:
Reviewed by:
Conversion of Avalon to Commons-Logger. (Will still need to update the
examples, which I will take care of next; Jeremias will be modifying
the PDF libraries for more efficient use of the CL loggers.)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197474 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/apps/Fop.java')
-rw-r--r-- | src/java/org/apache/fop/apps/Fop.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/apps/Fop.java b/src/java/org/apache/fop/apps/Fop.java index cf6f4fb4c..92d7f8fb0 100644 --- a/src/java/org/apache/fop/apps/Fop.java +++ b/src/java/org/apache/fop/apps/Fop.java @@ -22,8 +22,7 @@ package org.apache.fop.apps; import java.io.BufferedOutputStream; import java.io.FileOutputStream; -// Avalon -import org.apache.avalon.framework.logger.ConsoleLogger; +import org.apache.commons.logging.impl.SimpleLog; // FOP import org.apache.fop.render.awt.AWTRenderer; @@ -46,7 +45,10 @@ public class Fop { try { Driver driver = new Driver(); - driver.enableLogging(new ConsoleLogger(ConsoleLogger.LEVEL_INFO)); + SimpleLog log = new SimpleLog("FOP"); + log.setLevel(SimpleLog.LOG_LEVEL_INFO); + driver.setLogger(log); + driver.getLogger().info(version); options = new CommandLineOptions(args); inputHandler = options.getInputHandler(); |