Package com.hazelcast.logging
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.
- See Also:
AbstractLogger
-
Method Summary
Modifier and Type Method Description void
fine(String message)
Logs a message at theLevel.FINE
level.void
fine(String message, Throwable thrown)
Logs a message with an associated throwable at theLevel.FINE
level.void
fine(Throwable thrown)
Logs a throwable at theLevel.FINE
level.void
finest(String message)
Logs a message at theLevel.FINEST
level.void
finest(String message, Throwable thrown)
Logs a message with an associated throwable at theLevel.FINEST
level.void
finest(Throwable thrown)
Logs a throwable at theLevel.FINEST
level.Level
getLevel()
Gets the logging level.void
info(String message)
Logs a message at theLevel.INFO
level.void
info(String message, Throwable thrown)
Logs a message with an associated throwable at theLevel.INFO
level.void
info(Throwable thrown)
Logs a throwable at theLevel.INFO
level.boolean
isFineEnabled()
Checks if theLevel.FINE
level is enabled.boolean
isFinestEnabled()
Checks if theLevel.FINEST
level is enabled.boolean
isInfoEnabled()
Checks if theLevel.INFO
level is enabled.boolean
isLoggable(Level level)
Checks if a message at the given level is going to be logged by this logger.boolean
isSevereEnabled()
Checks if theLevel.SEVERE
is enabled.boolean
isWarningEnabled()
Checks if theLevel.WARNING
is enabled.void
log(LogEvent logEvent)
Logs a LogEvent.void
log(Level level, String message)
Logs a message at the given level.void
log(Level level, String message, Throwable thrown)
Logs a message with an associated throwable at the given level.void
severe(String message)
Logs a message atLevel.SEVERE
.void
severe(String message, Throwable thrown)
Logs a message with an associated throwable at theLevel.SEVERE
level.void
severe(Throwable thrown)
Logs a throwable at theLevel.SEVERE
level.void
warning(String message)
Logs a message at theLevel.WARNING
level.void
warning(String message, Throwable thrown)
Logs a message with an associated throwable at theLevel.WARNING
level.void
warning(Throwable thrown)
Logs a throwable at theLevel.WARNING
level.
-
Method Details
-
finest
Logs a message at theLevel.FINEST
level.- Parameters:
message
- the message to log
-
finest
Logs a throwable at theLevel.FINEST
level. The message of the Throwable will be the logged message.- Parameters:
thrown
- the Throwable to log
-
finest
Logs a message with an associated throwable at theLevel.FINEST
level.- Parameters:
message
- the message to logthrown
- the Throwable associated to the message
-
isFinestEnabled
boolean isFinestEnabled()Checks if theLevel.FINEST
level is enabled.- Returns:
- true if enabled, false otherwise
-
fine
Logs a message at theLevel.FINE
level.- Parameters:
message
- the message to log
-
fine
Logs a throwable at theLevel.FINE
level. The message of the Throwable will be the logged message.- Parameters:
thrown
- the Throwable to log
-
fine
Logs a message with an associated throwable at theLevel.FINE
level.- Parameters:
message
- the message to logthrown
- the Throwable associated to the message
-
isFineEnabled
boolean isFineEnabled()Checks if theLevel.FINE
level is enabled.- Returns:
- true if enabled, false otherwise
-
info
Logs a message at theLevel.INFO
level.- Parameters:
message
- the message to log
-
info
Logs a throwable at theLevel.INFO
level. The message of the Throwable will be the logged message.- Parameters:
thrown
- the Throwable to log
-
info
Logs a message with an associated throwable at theLevel.INFO
level.- Parameters:
message
- the message to logthrown
- the Throwable associated to the message
-
isInfoEnabled
boolean isInfoEnabled()Checks if theLevel.INFO
level is enabled.- Returns:
- true if enabled, false otherwise
-
warning
Logs a message at theLevel.WARNING
level.- Parameters:
message
- the message to log
-
warning
Logs a throwable at theLevel.WARNING
level. The message of the Throwable will be the logged message.- Parameters:
thrown
- the Throwable to log
-
warning
Logs a message with an associated throwable at theLevel.WARNING
level.- Parameters:
message
- the message to logthrown
- the Throwable associated to the message
-
isWarningEnabled
boolean isWarningEnabled()Checks if theLevel.WARNING
is enabled.- Returns:
- true if enabled, false otherwise
-
severe
Logs a message atLevel.SEVERE
.- Parameters:
message
- the message to log.
-
severe
Logs a throwable at theLevel.SEVERE
level. The message of the Throwable will be the logged message.- Parameters:
thrown
- the Throwable to log
-
severe
Logs a message with an associated throwable at theLevel.SEVERE
level.- Parameters:
message
- the message to logthrown
- the Throwable associated to the message
-
isSevereEnabled
boolean isSevereEnabled()Checks if theLevel.SEVERE
is enabled.- Returns:
- true if enabled, false otherwise
-
log
Logs a message at the given level.- Parameters:
level
- the log levelmessage
- the message to log
-
log
Logs a message with an associated throwable at the given level.- Parameters:
message
- the message to logthrown
- the Throwable associated to the message
-
log
Logs a LogEvent.- Parameters:
logEvent
- the logEvent to log
-
getLevel
Level getLevel()Gets the logging level.- Returns:
- the logging level
-
isLoggable
Checks if a message at the given level is going to be logged by this logger.- Parameters:
level
- the log level- Returns:
- true if this logger will log messages for the given level, false otherwise
-