Package com.zfabrik.util.logging
Class HomeFileHandler
java.lang.Object
java.util.logging.Handler
java.util.logging.StreamHandler
java.util.logging.FileHandler
com.zfabrik.util.logging.HomeFileHandler
A modification of the standard JUL file handler that suppresses logging
on worker nodes. In the server setup, this means that only the home process
will write log files (which is typically desirable, as it tunnels the worker
process logs anyway).
Can be used as a drop-in replacement for FileHandler
- Author:
- hb
-
Constructor Summary
ConstructorsConstructorDescriptionHomeFileHandler
(String pattern) HomeFileHandler
(String pattern, boolean append) HomeFileHandler
(String pattern, int limit, int count) HomeFileHandler
(String pattern, int limit, int count, boolean append) -
Method Summary
Methods inherited from class java.util.logging.FileHandler
close
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
-
HomeFileHandler
- Throws:
IOException
SecurityException
-
HomeFileHandler
- Throws:
IOException
SecurityException
-
HomeFileHandler
public HomeFileHandler(String pattern, int limit, int count, boolean append) throws IOException, SecurityException - Throws:
IOException
SecurityException
-
HomeFileHandler
- Throws:
IOException
SecurityException
-
HomeFileHandler
- Throws:
IOException
SecurityException
-
-
Method Details
-
publish
- Overrides:
publish
in classFileHandler
-