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
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 prefix java.util.logging.FileHandler
you use the prefix com.zfabrik.util.logging.NodeFileHandler
.
For example, in order to set a formatter, use com.zfabrik.util.logging.NodeFileHandler.formatter
.
- Author:
- hb
-
Constructor Summary
ConstructorsConstructorDescriptionThis constructor assumes all config from theLogManager
NodeFileHandler
(String pattern) This constructor takes append from theLogManager
and defaults to 0 and 1 for limit and count resp.NodeFileHandler
(String pattern, boolean append) This constructor defaults to 0 and 1 for limit and count resp.NodeFileHandler
(String pattern, int limit, int count) This constructor takes append from theLogManager
.NodeFileHandler
(String pattern, int limit, int count, boolean append) Full-configuration constructor -
Method Summary
Methods inherited from class java.util.logging.FileHandler
close, publish
Methods inherited from class java.util.logging.StreamHandler
flush, isLoggable, setEncoding, setOutputStream
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
-
Constructor Details
-
NodeFileHandler
This constructor assumes all config from theLogManager
- Throws:
IOException
SecurityException
-
NodeFileHandler
This constructor takes append from theLogManager
and defaults to 0 and 1 for limit and count resp.- Throws:
IOException
SecurityException
-
NodeFileHandler
This constructor defaults to 0 and 1 for limit and count resp.- Throws:
IOException
SecurityException
-
NodeFileHandler
This constructor takes append from theLogManager
.- Throws:
IOException
SecurityException
-
NodeFileHandler
public NodeFileHandler(String pattern, int limit, int count, boolean append) throws IOException, SecurityException Full-configuration constructor- Throws:
IOException
SecurityException
-