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.
AbstractLogger
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Logs a message at theLevel.FINE
level.default void
Logs tofine(String)
using a lazily evaluatedtemplate
String
with arguments, formatted usingString.format(String, Object...)
default void
default void
default void
default void
default void
void
Logs a message with an associated throwable at theLevel.FINE
level.void
Logs a throwable at theLevel.FINE
level.void
Logs a message at theLevel.FINEST
level.default void
Logs tofinest(String)
using a lazily evaluatedtemplate
String
with arguments, formatted usingString.format(String, Object...)
default void
default void
default void
default void
default void
finest
(String template, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6) void
Logs a message with an associated throwable at theLevel.FINEST
level.void
Logs a throwable at theLevel.FINEST
level.getLevel()
void
Logs a message at theLevel.INFO
level.void
Logs a message with an associated throwable at theLevel.INFO
level.void
Logs a throwable at theLevel.INFO
level.boolean
Checks if theLevel.FINE
level is enabled.boolean
Checks if theLevel.FINEST
level is enabled.boolean
Checks if theLevel.INFO
level is enabled.boolean
isLoggable
(Level finest) boolean
Checks if theLevel.SEVERE
is enabled.boolean
Checks if theLevel.WARNING
is enabled.void
Deprecated.Since 5.1, the method is unusedvoid
Logs a message at the given level.void
Logs a message with an associated throwable at the given level.void
Logs a message atLevel.SEVERE
.void
Logs a message with an associated throwable at theLevel.SEVERE
level.void
Logs a throwable at theLevel.SEVERE
level.void
Logs a message at theLevel.WARNING
level.void
Logs a message with an associated throwable at theLevel.WARNING
level.void
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
Deprecated.Since 5.1, the method is unusedLogs a LogEvent.- Parameters:
logEvent
- the logEvent to log
-
fine
Logs tofine(String)
using a lazily evaluatedtemplate
String
with arguments, formatted usingString.format(String, Object...)
- Since:
- 5.4
-
fine
-
fine
-
fine
-
fine
-
fine
-
finest
Logs tofinest(String)
using a lazily evaluatedtemplate
String
with arguments, formatted usingString.format(String, Object...)
- Since:
- 5.4
-
finest
-
finest
-
finest
-
finest
-
finest
-
getLevel
Level getLevel() -
isLoggable
-