Interface ILogger

All Known Implementing Classes:
AbstractLogger, Log4j2Factory.Log4j2Logger

public interface ILogger
The Hazelcast logging interface. It exists because Hazelcast doesn't want any dependencies on concrete logging frameworks, so it creates its own meta logging framework behind which existing frameworks can be placed.

AbstractLogger

  • Method Details

    • finest

      void finest(String message)
      Logs a message at the Level.FINEST level.
      Parameters:
      message - the message to log
    • finest

      void finest(Throwable thrown)
      Logs a throwable at the Level.FINEST level. The message of the Throwable will be the logged message.
      Parameters:
      thrown - the Throwable to log
    • finest

      void finest(String message, Throwable thrown)
      Logs a message with an associated throwable at the Level.FINEST level.
      Parameters:
      message - the message to log
      thrown - the Throwable associated to the message
    • isFinestEnabled

      boolean isFinestEnabled()
      Checks if the Level.FINEST level is enabled.
      Returns:
      true if enabled, false otherwise
    • fine

      void fine(String message)
      Logs a message at the Level.FINE level.
      Parameters:
      message - the message to log
    • fine

      void fine(Throwable thrown)
      Logs a throwable at the Level.FINE level. The message of the Throwable will be the logged message.
      Parameters:
      thrown - the Throwable to log
    • fine

      void fine(String message, Throwable thrown)
      Logs a message with an associated throwable at the Level.FINE level.
      Parameters:
      message - the message to log
      thrown - the Throwable associated to the message
    • isFineEnabled

      boolean isFineEnabled()
      Checks if the Level.FINE level is enabled.
      Returns:
      true if enabled, false otherwise
    • info

      void info(String message)
      Logs a message at the Level.INFO level.
      Parameters:
      message - the message to log
    • info

      void info(Throwable thrown)
      Logs a throwable at the Level.INFO level. The message of the Throwable will be the logged message.
      Parameters:
      thrown - the Throwable to log
    • info

      void info(String message, Throwable thrown)
      Logs a message with an associated throwable at the Level.INFO level.
      Parameters:
      message - the message to log
      thrown - the Throwable associated to the message
    • isInfoEnabled

      boolean isInfoEnabled()
      Checks if the Level.INFO level is enabled.
      Returns:
      true if enabled, false otherwise
    • warning

      void warning(String message)
      Logs a message at the Level.WARNING level.
      Parameters:
      message - the message to log
    • warning

      void warning(Throwable thrown)
      Logs a throwable at the Level.WARNING level. The message of the Throwable will be the logged message.
      Parameters:
      thrown - the Throwable to log
    • warning

      void warning(String message, Throwable thrown)
      Logs a message with an associated throwable at the Level.WARNING level.
      Parameters:
      message - the message to log
      thrown - the Throwable associated to the message
    • isWarningEnabled

      boolean isWarningEnabled()
      Checks if the Level.WARNING is enabled.
      Returns:
      true if enabled, false otherwise
    • severe

      void severe(String message)
      Logs a message at Level.SEVERE.
      Parameters:
      message - the message to log.
    • severe

      void severe(Throwable thrown)
      Logs a throwable at the Level.SEVERE level. The message of the Throwable will be the logged message.
      Parameters:
      thrown - the Throwable to log
    • severe

      void severe(String message, Throwable thrown)
      Logs a message with an associated throwable at the Level.SEVERE level.
      Parameters:
      message - the message to log
      thrown - the Throwable associated to the message
    • isSevereEnabled

      boolean isSevereEnabled()
      Checks if the Level.SEVERE is enabled.
      Returns:
      true if enabled, false otherwise
    • log

      void log(Level level, String message)
      Logs a message at the given level.
      Parameters:
      level - the log level
      message - the message to log
    • log

      void log(Level level, String message, Throwable thrown)
      Logs a message with an associated throwable at the given level.
      Parameters:
      message - the message to log
      thrown - the Throwable associated to the message
    • log

      @Deprecated void log(LogEvent logEvent)
      Deprecated.
      Since 5.1, the method is unused
      Logs a LogEvent.
      Parameters:
      logEvent - the logEvent to log
    • fine

      default void fine(String template, Object arg1)
      Logs to fine(String) using a lazily evaluated template String with arguments, formatted using String.format(String, Object...)
      Since:
      5.4
    • fine

      default void fine(String template, Object arg1, Object arg2)
    • fine

      default void fine(String template, Object arg1, Object arg2, Object arg3)
    • fine

      default void fine(String template, Object arg1, Object arg2, Object arg3, Object arg4)
    • fine

      default void fine(String template, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)
    • fine

      default void fine(String template, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6)
    • finest

      default void finest(String template, Object arg1)
      Logs to finest(String) using a lazily evaluated template String with arguments, formatted using String.format(String, Object...)
      Since:
      5.4
    • finest

      default void finest(String template, Object arg1, Object arg2)
    • finest

      default void finest(String template, Object arg1, Object arg2, Object arg3)
    • finest

      default void finest(String template, Object arg1, Object arg2, Object arg3, Object arg4)
    • finest

      default void finest(String template, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)
    • finest

      default void finest(String template, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6)
    • getLevel

      Level getLevel()
    • isLoggable

      boolean isLoggable(Level finest)