Package gov.cms.hh.common
Class HHLogger
java.lang.Object
gov.cms.hh.common.HHLogger
Custom logger that encodes every log record with the runtime external charset
before writing raw bytes to
System.err.
This bypasses the JUL handler/formatter pipeline entirely, which on IBM Java
21 z/OS does not reliably honour a charset set via
Handler.setEncoding(java.lang.String). All other JUL logging
semantics (level filtering, parameter substitution, stack-trace capture) are
preserved.
Usage — drop-in replacement for the standard Logger field:
private static final HHLogger LOG = HHLogger.getLogger(MyClass.class.getName());
-
Method Summary
Modifier and TypeMethodDescriptionstatic HHLoggerReturns theHHLoggerfor the given name, creating it if absent.voidvoidvoidvoidvoidvoidvoid
-
Method Details
-
getLogger
Returns theHHLoggerfor the given name, creating it if absent.- Parameters:
name- logger name (typicallyClassName.class.getName())- Returns:
- cached
HHLoggerinstance
-
info
-
warning
-
severe
-
log
-
log
-
log
-
log
-