Package com.zfabrik.util.logging
Class NodeFileHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- java.util.logging.StreamHandler
-
- java.util.logging.FileHandler
-
- com.zfabrik.util.logging.NodeFileHandler
-
public class NodeFileHandler extends java.util.logging.FileHandlerThis modification of the JUL file handler prepends a node name (home, or worker process component name) to the file handler's file pattern.Otherwise it is a drop-in replacement for
FileHandler. That is, all configurations apply but instead of using the prefixjava.util.logging.FileHandleryou use the prefixcom.zfabrik.util.logging.NodeFileHandler. For example, in order to set a formatter, usecom.zfabrik.util.logging.NodeFileHandler.formatter.- Author:
- hb
-
-
Constructor Summary
Constructors Constructor Description NodeFileHandler()This constructor assumes all config from theLogManagerNodeFileHandler(java.lang.String pattern)This constructor takes append from theLogManagerand defaults to 0 and 1 for limit and count resp.NodeFileHandler(java.lang.String pattern, boolean append)This constructor defaults to 0 and 1 for limit and count resp.NodeFileHandler(java.lang.String pattern, int limit, int count)This constructor takes append from theLogManager.NodeFileHandler(java.lang.String pattern, int limit, int count, boolean append)Full-configuration constructor
-
Method Summary
-
Methods inherited from class java.util.logging.StreamHandler
flush, isLoggable, setEncoding, setOutputStream
-
-
-
-
Constructor Detail
-
NodeFileHandler
public NodeFileHandler() throws java.io.IOException, java.lang.SecurityExceptionThis constructor assumes all config from theLogManager- Throws:
java.io.IOExceptionjava.lang.SecurityException
-
NodeFileHandler
public NodeFileHandler(java.lang.String pattern) throws java.io.IOException, java.lang.SecurityExceptionThis constructor takes append from theLogManagerand defaults to 0 and 1 for limit and count resp.- Throws:
java.io.IOExceptionjava.lang.SecurityException
-
NodeFileHandler
public NodeFileHandler(java.lang.String pattern, boolean append) throws java.io.IOException, java.lang.SecurityExceptionThis constructor defaults to 0 and 1 for limit and count resp.- Throws:
java.io.IOExceptionjava.lang.SecurityException
-
NodeFileHandler
public NodeFileHandler(java.lang.String pattern, int limit, int count) throws java.io.IOException, java.lang.SecurityExceptionThis constructor takes append from theLogManager.- Throws:
java.io.IOExceptionjava.lang.SecurityException
-
NodeFileHandler
public NodeFileHandler(java.lang.String pattern, int limit, int count, boolean append) throws java.io.IOException, java.lang.SecurityExceptionFull-configuration constructor- Throws:
java.io.IOExceptionjava.lang.SecurityException
-
-