From 01220902da2645269cacd9bb7fb6092d0c6dc461 Mon Sep 17 00:00:00 2001
From: Glen Mazza
Date: Sun, 11 Apr 2004 21:53:41 +0000
Subject: [PATCH] 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
---
src/documentation/content/xdocs/embedding.xml | 29 +++++++++++++++++--
1 file 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,8 +65,33 @@ driver.run();]]>
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.
-
+ Logging
+
+ 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
+ below for more information.
+
+
+ Call setLogger(Logger) always immediately after
+ instantiating the Driver object. See here:
+
+
+
+
+
+ Logging (Upcoming FOP 1.0 Version only)
You also need to set up logging. Global logging for all FOP
processes is managed by MessageHandler. Per-instance logging
@@ -160,7 +185,7 @@ transformer.transform(src, res);]]>
Controlling logging
- FOP uses the
+ Current FOP 0.20.x production uses the
Logger package
from Apache Avalon Framework to do logging. See the
Apache Avalon Framework
--
2.39.5