Class MarkingClassLoggerBackendWrapper

java.lang.Object
com.google.common.flogger.backend.LoggerBackend
rma.util.logging.MarkingClassLoggerBackendWrapper

public class MarkingClassLoggerBackendWrapper extends com.google.common.flogger.backend.LoggerBackend
Combines two different logger backends into one. Uses the marking logger to determing loggability.
  • Constructor Details

    • MarkingClassLoggerBackendWrapper

      public MarkingClassLoggerBackendWrapper(com.google.common.flogger.backend.LoggerBackend toWrap, com.google.common.flogger.backend.LoggerBackend markingClassLogger)
  • Method Details

    • getLoggerName

      public String getLoggerName()
      Specified by:
      getLoggerName in class com.google.common.flogger.backend.LoggerBackend
    • isLoggable

      public boolean isLoggable(Level lvl)
      Specified by:
      isLoggable in class com.google.common.flogger.backend.LoggerBackend
    • log

      public void log(com.google.common.flogger.backend.LogData data)
      Specified by:
      log in class com.google.common.flogger.backend.LoggerBackend
    • handleError

      public void handleError(RuntimeException error, com.google.common.flogger.backend.LogData badData)
      Specified by:
      handleError in class com.google.common.flogger.backend.LoggerBackend