Class Log4jAdapter

java.lang.Object
io.deephaven.util.Log4jAdapter

public class Log4jAdapter extends Object
Simple adapter that sends Log4j style log output to a Logger. Warning - Log4j is not installed by default on Deephaven systems. Use of this class will result in class exceptions if the appropriate jars are not made available. Log4jValidator.isLog4jAvailable() is provided to determine whether Log4j is available on the system.
  • Constructor Details

    • Log4jAdapter

      public Log4jAdapter()
  • Method Details

    • sendLog4jToLogger

      public static void sendLog4jToLogger(com.fishlib.io.logger.Logger logger)
      Sends all Log4j style log output to the given fishlib Logger. Specifically, adds the Logger as an appender of all loggers, and removes their appenders.
    • getLogLevel

      public static com.fishlib.io.log.LogLevel getLogLevel(org.apache.logging.log4j.Level level)