diff options
author | Keiron Liddle <keiron@apache.org> | 2002-11-14 07:35:45 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2002-11-14 07:35:45 +0000 |
commit | 483ee111734df5cce58d66119354eaca27f0d1e4 (patch) | |
tree | 6ae5c0e0ac1ae6e916ba6664970b0f22093710a6 | |
parent | a26847f2eee0ea692994ed056b7c465c4ddacf2b (diff) | |
download | xmlgraphics-fop-483ee111734df5cce58d66119354eaca27f0d1e4.tar.gz xmlgraphics-fop-483ee111734df5cce58d66119354eaca27f0d1e4.zip |
updated to latest api for setting logger
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195534 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | contrib/servlet/src/FopPrintServlet.java | 8 | ||||
-rw-r--r-- | contrib/servlet/src/FopServlet.java | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/contrib/servlet/src/FopPrintServlet.java b/contrib/servlet/src/FopPrintServlet.java index a02c3984c..dd9c4144b 100644 --- a/contrib/servlet/src/FopPrintServlet.java +++ b/contrib/servlet/src/FopPrintServlet.java @@ -101,7 +101,7 @@ public class FopPrintServlet extends HttpServlet { PrinterJob pj = PrinterJob.getPrinterJob(); PrintRenderer renderer = new PrintRenderer(pj); - driver.setLogger (log); + driver.enableLogging(log); driver.setRenderer(renderer); driver.run(); @@ -123,9 +123,9 @@ public class FopPrintServlet extends HttpServlet { pj.setCopies(1); - driver.setLogger (log); - driver.setRenderer (renderer); - driver.render (input.getParser(), input.getInputSource()); + driver.enableLogging(log); + driver.setRenderer(renderer); + driver.render(input.getParser(), input.getInputSource()); reportOK (response); } catch (Exception ex) { diff --git a/contrib/servlet/src/FopServlet.java b/contrib/servlet/src/FopServlet.java index 28680e812..b28c6a7f7 100644 --- a/contrib/servlet/src/FopServlet.java +++ b/contrib/servlet/src/FopServlet.java @@ -93,7 +93,7 @@ public class FopServlet extends HttpServlet { response.setContentType("application/pdf"); Driver driver = new Driver(foFile, out); - driver.setLogger(log); + driver.enableLogging(log); driver.setRenderer(Driver.RENDER_PDF); driver.run(); @@ -119,7 +119,7 @@ public class FopServlet extends HttpServlet { response.setContentType("application/pdf"); Driver driver = new Driver(); - driver.setLogger(log); + driver.enableLogging(log); driver.setRenderer(Driver.RENDER_PDF); driver.setOutputStream(out); driver.render(input.getParser(), input.getInputSource()); |