pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1860725 - /pdfbox/branches/issue45/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java
Date Thu, 06 Jun 2019 16:50:38 GMT
Author: tilman
Date: Thu Jun  6 16:50:38 2019
New Revision: 1860725

URL: http://svn.apache.org/viewvc?rev=1860725&view=rev
Log:
PDFBOX-4529: introduce debug log for main tool

Modified:
    pdfbox/branches/issue45/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java

Modified: pdfbox/branches/issue45/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java?rev=1860725&r1=1860724&r2=1860725&view=diff
==============================================================================
--- pdfbox/branches/issue45/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java (original)
+++ pdfbox/branches/issue45/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java Thu Jun
 6 16:50:38 2019
@@ -16,6 +16,9 @@
  */
 package org.apache.pdfbox.tools;
 
+import java.util.Arrays;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.pdfbox.debugger.PDFDebugger;
 
 /**
@@ -26,6 +29,7 @@ import org.apache.pdfbox.debugger.PDFDeb
  */
 public final class PDFBox 
 {
+    private static final Log LOG = LogFactory.getLog(PDFBox.class);
 
     private PDFBox()
     {
@@ -35,9 +39,12 @@ public final class PDFBox
      * Main method.
      * 
      * @param args command line arguments
+     * @throws java.lang.Exception
      */
     public static void main(String[] args) throws Exception
     {
+        LOG.debug("Args: " + Arrays.toString(args));
+
         // suppress the Dock icon on OS X
         System.setProperty("apple.awt.UIElement", "true");
 



Mime
View raw message