Class HHLogger

java.lang.Object
gov.cms.hh.common.HHLogger

public final class HHLogger extends Object
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 Details

    • getLogger

      public static HHLogger getLogger(String name)
      Returns the HHLogger for the given name, creating it if absent.
      Parameters:
      name - logger name (typically ClassName.class.getName())
      Returns:
      cached HHLogger instance
    • info

      public void info(String msg)
    • warning

      public void warning(String msg)
    • severe

      public void severe(String msg)
    • log

      public void log(Level level, String msg)
    • log

      public void log(Level level, String msg, Object param)
    • log

      public void log(Level level, String msg, Object[] params)
    • log

      public void log(Level level, String msg, Throwable thrown)