]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
updated to latest api for setting logger
authorKeiron Liddle <keiron@apache.org>
Thu, 14 Nov 2002 07:35:45 +0000 (07:35 +0000)
committerKeiron Liddle <keiron@apache.org>
Thu, 14 Nov 2002 07:35:45 +0000 (07:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195534 13f79535-47bb-0310-9956-ffa450edef68

contrib/servlet/src/FopPrintServlet.java
contrib/servlet/src/FopServlet.java

index a02c3984c8fe1752c120742bfff8205b1a566f36..dd9c4144bed432d750d7b22a1603596786fc3788 100644 (file)
@@ -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) {
index 28680e812097980380afb5027fd6eeb32df0a6e2..b28c6a7f7555224a7d3455174828def27990880e 100644 (file)
@@ -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());