diff options
author | Glen Mazza <gmazza@apache.org> | 2004-06-20 12:35:17 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2004-06-20 12:35:17 +0000 |
commit | d6fc7d07d23209f2416a674e5208ae53f070ae26 (patch) | |
tree | ffd46f9672c76e5b581fed77338ec0d1d8632366 /src/documentation/content/xdocs/embedding.xml | |
parent | b638342ab96a6d344aab5fd9653ca24e29d90424 (diff) | |
download | xmlgraphics-fop-d6fc7d07d23209f2416a674e5208ae53f070ae26.tar.gz xmlgraphics-fop-d6fc7d07d23209f2416a674e5208ae53f070ae26.zip |
1.) Removed the get/setLogger methods from Driver, obsolete with Commons-Logging.
2.) Updated examples and documentation.
3.) Added a -v option to show version of FOP being used.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197740 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/documentation/content/xdocs/embedding.xml')
-rw-r--r-- | src/documentation/content/xdocs/embedding.xml | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/src/documentation/content/xdocs/embedding.xml b/src/documentation/content/xdocs/embedding.xml index ac707fa73..3c729558a 100644 --- a/src/documentation/content/xdocs/embedding.xml +++ b/src/documentation/content/xdocs/embedding.xml @@ -93,26 +93,13 @@ driver.setLogger(logger);]]></source> <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> - <p> - Call <code>setLogger(Logger)</code> always immediately after - instantiating the Driver object. See here: + Logging is handled automatically via Jakarta Commons-Logging, which uses + JDK logging by default. No special driver configuration is needed. + For specialized configuration of Commons-Logging (e.g. to use a + different logger or to change logging levels), please see the + <fork href="http://jakarta.apache.org/commons/logging/">Jakarta Commons-Logging</fork> + site. </p> - <source><![CDATA[ -import org.apache.commons.logging.Log; -import org.apache.commons.logging.impl.SimpleLog; - -/*..*/ - -Driver driver = new Driver(); -Log logger = new SimpleLog(SimpleLog.LOG_LEVEL_INFO); -MessageHandler.setScreenLogger(logger); -driver.setLogger(logger);]]></source> </section> <section id="render"> |