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.FileHandler
This 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.FileHandler
you 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 theLogManager
NodeFileHandler(java.lang.String pattern)
This constructor takes append from theLogManager
and 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.SecurityException
This constructor assumes all config from theLogManager
- Throws:
java.io.IOException
java.lang.SecurityException
-
NodeFileHandler
public NodeFileHandler(java.lang.String pattern) throws java.io.IOException, java.lang.SecurityException
This constructor takes append from theLogManager
and defaults to 0 and 1 for limit and count resp.- Throws:
java.io.IOException
java.lang.SecurityException
-
NodeFileHandler
public NodeFileHandler(java.lang.String pattern, boolean append) throws java.io.IOException, java.lang.SecurityException
This constructor defaults to 0 and 1 for limit and count resp.- Throws:
java.io.IOException
java.lang.SecurityException
-
NodeFileHandler
public NodeFileHandler(java.lang.String pattern, int limit, int count) throws java.io.IOException, java.lang.SecurityException
This constructor takes append from theLogManager
.- Throws:
java.io.IOException
java.lang.SecurityException
-
NodeFileHandler
public NodeFileHandler(java.lang.String pattern, int limit, int count, boolean append) throws java.io.IOException, java.lang.SecurityException
Full-configuration constructor- Throws:
java.io.IOException
java.lang.SecurityException
-
-