com.ibm.mm.logging
Class ErrorFileHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- java.util.logging.StreamHandler
-
- java.util.logging.FileHandler
-
- com.ibm.mm.logging.ErrorFileHandler
-
public class ErrorFileHandler extends java.util.logging.FileHandlerSeparate file handler for ERROR and SEVERE logs only Helps in quickly identifying critical issues
-
-
Constructor Summary
Constructors Constructor and Description ErrorFileHandler()Creates a new ErrorFileHandler that only logs WARNING and above
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidpublish(java.util.logging.LogRecord record)Override publish to filter out logs below WARNING level This ensures only errors are written to this file-
Methods inherited from class java.util.logging.StreamHandler
flush, isLoggable, setEncoding, setOutputStream
-
-