From: Keiron Liddle Date: Thu, 14 Nov 2002 07:35:45 +0000 (+0000) Subject: updated to latest api for setting logger X-Git-Tag: Alt-Design-integration-base~331 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=483ee111734df5cce58d66119354eaca27f0d1e4;p=xmlgraphics-fop.git 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 --- 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());