[jboss-svn-commits] JBoss Common SVN: r3380 - jboss-logmanager/trunk/src/main/java/org/jboss/logmanager/handlers.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Jul 16 19:15:11 EDT 2009


Author: david.lloyd at jboss.com
Date: 2009-07-16 19:15:11 -0400 (Thu, 16 Jul 2009)
New Revision: 3380

Modified:
   jboss-logmanager/trunk/src/main/java/org/jboss/logmanager/handlers/FileHandler.java
   jboss-logmanager/trunk/src/main/java/org/jboss/logmanager/handlers/PeriodicRotatingFileHandler.java
   jboss-logmanager/trunk/src/main/java/org/jboss/logmanager/handlers/SizeRotatingFileHandler.java
Log:
Add yet more constructors to work around JBossMC's random-property-set-order issue

Modified: jboss-logmanager/trunk/src/main/java/org/jboss/logmanager/handlers/FileHandler.java
===================================================================
--- jboss-logmanager/trunk/src/main/java/org/jboss/logmanager/handlers/FileHandler.java	2009-07-16 23:12:11 UTC (rev 3379)
+++ jboss-logmanager/trunk/src/main/java/org/jboss/logmanager/handlers/FileHandler.java	2009-07-16 23:15:11 UTC (rev 3380)
@@ -100,6 +100,28 @@
     }
 
     /**
+     * Construct a new instance with the given output file.
+     *
+     * @param fileName the file name
+     * @throws FileNotFoundException if the file could not be found on open
+     */
+    public FileHandler(final String fileName) throws FileNotFoundException {
+        setFileName(fileName);
+    }
+
+    /**
+     * Construct a new instance with the given output file and append setting.
+     *
+     * @param fileName the file name
+     * @param append {@code true} to append, {@code false} to overwrite
+     * @throws FileNotFoundException if the file could not be found on open
+     */
+    public FileHandler(final String fileName, final boolean append) throws FileNotFoundException {
+        this.append = append;
+        setFileName(fileName);
+    }
+
+    /**
      * Specify whether to append to the target file.
      *
      * @param append {@code true} to append, {@code false} to overwrite

Modified: jboss-logmanager/trunk/src/main/java/org/jboss/logmanager/handlers/PeriodicRotatingFileHandler.java
===================================================================
--- jboss-logmanager/trunk/src/main/java/org/jboss/logmanager/handlers/PeriodicRotatingFileHandler.java	2009-07-16 23:12:11 UTC (rev 3379)
+++ jboss-logmanager/trunk/src/main/java/org/jboss/logmanager/handlers/PeriodicRotatingFileHandler.java	2009-07-16 23:15:11 UTC (rev 3380)
@@ -51,6 +51,29 @@
     /**
      * Construct a new instance with the given output file.
      *
+     * @param fileName the file name
+     *
+     * @throws java.io.FileNotFoundException if the file could not be found on open
+     */
+    public PeriodicRotatingFileHandler(final String fileName) throws FileNotFoundException {
+        super(fileName);
+    }
+
+    /**
+     * Construct a new instance with the given output file and append setting.
+     *
+     * @param fileName the file name
+     * @param append {@code true} to append, {@code false} to overwrite
+     *
+     * @throws java.io.FileNotFoundException if the file could not be found on open
+     */
+    public PeriodicRotatingFileHandler(final String fileName, final boolean append) throws FileNotFoundException {
+        super(fileName, append);
+    }
+
+    /**
+     * Construct a new instance with the given output file.
+     *
      * @param file the file
      * @param suffix the format suffix to use
      *

Modified: jboss-logmanager/trunk/src/main/java/org/jboss/logmanager/handlers/SizeRotatingFileHandler.java
===================================================================
--- jboss-logmanager/trunk/src/main/java/org/jboss/logmanager/handlers/SizeRotatingFileHandler.java	2009-07-16 23:12:11 UTC (rev 3379)
+++ jboss-logmanager/trunk/src/main/java/org/jboss/logmanager/handlers/SizeRotatingFileHandler.java	2009-07-16 23:15:11 UTC (rev 3380)
@@ -66,6 +66,29 @@
     }
 
     /**
+     * Construct a new instance with the given output file.
+     *
+     * @param fileName the file name
+     *
+     * @throws java.io.FileNotFoundException if the file could not be found on open
+     */
+    public SizeRotatingFileHandler(final String fileName) throws FileNotFoundException {
+        super(fileName);
+    }
+
+    /**
+     * Construct a new instance with the given output file and append setting.
+     *
+     * @param fileName the file name
+     * @param append {@code true} to append, {@code false} to overwrite
+     *
+     * @throws java.io.FileNotFoundException if the file could not be found on open
+     */
+    public SizeRotatingFileHandler(final String fileName, final boolean append) throws FileNotFoundException {
+        super(fileName, append);
+    }
+
+    /**
      * Construct a new instance with no formatter and no output file.
      */
     public SizeRotatingFileHandler(final long rotateSize, final int maxBackupIndex) {



More information about the jboss-svn-commits mailing list