Package rma.util.logging
Class FileHandler02
java.lang.Object
java.util.logging.Handler
java.util.logging.StreamHandler
java.util.logging.FileHandler
rma.util.logging.FileHandler02
Behaves exactly as FileHandler. This class was written to allow java.util.logging to configure two different
FileHandlers via the properties file. A user might want to do this so that log messages from different packages get
sent to different log files. This has always been possible to do via code, but a class like this is necessary to
achieve the same thing from the properties file. Other, more mature logging frameworks like log4j commons-logging or
slf4j make this sort of thing easy to do.
http://stackoverflow.com/questions/8248899/java-logging-how-to-redirect-output-to-a-custom-log-file-for-a-logger
-
Constructor Summary
Constructors -
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
-
FileHandler02
- Throws:
IOException
SecurityException
-