Class Log4j2Factory.Log4j2Logger

java.lang.Object
com.hazelcast.logging.AbstractLogger
com.hazelcast.logging.Log4j2Factory.Log4j2Logger
All Implemented Interfaces:
ILogger, com.hazelcast.logging.impl.InternalLogger
Enclosing class:
Log4j2Factory

@PrivateApi public static class Log4j2Factory.Log4j2Logger extends AbstractLogger implements com.hazelcast.logging.impl.InternalLogger
  • Constructor Details

    • Log4j2Logger

      public Log4j2Logger(org.apache.logging.log4j.spi.ExtendedLogger logger)
  • Method Details

    • setLevel

      public void setLevel(Level level)
      Description copied from interface: com.hazelcast.logging.impl.InternalLogger
      Sets the level of this logger to the given level.
      Specified by:
      setLevel in interface com.hazelcast.logging.impl.InternalLogger
      Parameters:
      level - the level to set, can be null if the underlying logging framework gives some special meaning to it (like inheriting the log level from some parent object).
    • log

      public void log(LogEvent logEvent)
      Description copied from interface: ILogger
      Logs a LogEvent.
      Specified by:
      log in interface ILogger
      Parameters:
      logEvent - the logEvent to log
    • log

      public void log(Level level, String message)
      Description copied from interface: ILogger
      Logs a message at the given level.
      Specified by:
      log in interface ILogger
      Parameters:
      level - the log level
      message - the message to log
    • log

      public void log(Level level, String message, Throwable thrown)
      Description copied from interface: ILogger
      Logs a message with an associated throwable at the given level.
      Specified by:
      log in interface ILogger
      message - the message to log
      thrown - the Throwable associated to the message
    • getLevel

      public Level getLevel()
      Specified by:
      getLevel in interface ILogger
    • isLoggable

      public boolean isLoggable(Level level)
      Specified by:
      isLoggable in interface ILogger