aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-04-11 21:53:41 +0000
committerGlen Mazza <gmazza@apache.org>2004-04-11 21:53:41 +0000
commit01220902da2645269cacd9bb7fb6092d0c6dc461 (patch)
tree0af124d959ba73bfaf3d6ed1b3814099a7a9e24c /src
parente5bf5c9709ab9d49cc07331235b04e0d2d3ef153 (diff)
downloadxmlgraphics-fop-01220902da2645269cacd9bb7fb6092d0c6dc461.tar.gz
xmlgraphics-fop-01220902da2645269cacd9bb7fb6092d0c6dc461.zip
Returned documentation on how to do Avalon logging; documentation now in two sections.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197497 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/documentation/content/xdocs/embedding.xml29
1 files changed, 27 insertions, 2 deletions
diff --git a/src/documentation/content/xdocs/embedding.xml b/src/documentation/content/xdocs/embedding.xml
index 9345d2a90..ac707fa73 100644
--- a/src/documentation/content/xdocs/embedding.xml
+++ b/src/documentation/content/xdocs/embedding.xml
@@ -65,12 +65,37 @@ driver.run();]]></source>
In the example above, args[0] contains the path to an XSL-FO file, while
args[1] contains a path for the target PDF file.
</p>
- <section id="basic-logging">
+ <section id="basic-logging">
<title>Logging</title>
<p>
You also need to set up logging. Global logging for all FOP
processes is managed by MessageHandler. Per-instance logging
is handled by Driver. You want to set both using an implementation
+ of org.apache.avalon.framework.logger.Logger. See
+ <jump href="#logging">below</jump> for more information.
+ </p>
+ <p>
+ Call <code>setLogger(Logger)</code> always immediately after
+ instantiating the Driver object. See here:
+ </p>
+ <source><![CDATA[
+import org.apache.avalon.framework.logger.Logger;
+import org.apache.avalon.framework.logger.ConsoleLogger;
+
+/*..*/
+
+Driver driver = new Driver();
+Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO);
+MessageHandler.setScreenLogger(logger);
+driver.setLogger(logger);]]></source>
+ </section>
+
+ <section id="basic-logging-new-version">
+ <title>Logging (Upcoming FOP 1.0 Version only)</title>
+ <p>
+ You also need to set up logging. Global logging for all FOP
+ processes is managed by MessageHandler. Per-instance logging
+ is handled by Driver. You want to set both using an implementation
of org.apache.commons.logging.Log. See
<jump href="#logging">below</jump> for more information.
</p>
@@ -160,7 +185,7 @@ transformer.transform(src, res);]]></source>
<section id="logging">
<title>Controlling logging</title>
<p>
- FOP uses the
+ Current FOP 0.20.x production uses the
<fork href="http://avalon.apache.org/framework/api/org/apache/avalon/framework/logger/package-summary.html">Logger package</fork>
from Apache Avalon Framework to do logging. See the
<fork href="http://avalon.apache.org/framework/">Apache Avalon Framework</fork>