Package com.hazelcast.logging
Class AbstractLogger
java.lang.Object
com.hazelcast.logging.AbstractLogger
- All Implemented Interfaces:
ILogger
- Direct Known Subclasses:
Log4j2Factory.Log4j2Logger
Abstract
ILogger
implementation that provides implementations for convenience methods like
finest, info, warning and severe.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Logs a message at theLevel.FINE
level.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.void
Logs a message with an associated throwable at theLevel.FINEST
level.void
Logs a throwable at theLevel.FINEST
level.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
Checks if theLevel.SEVERE
is enabled.boolean
Checks if theLevel.WARNING
is enabled.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.
-
Constructor Details
-
AbstractLogger
public AbstractLogger()
-
-
Method Details
-
finest
Description copied from interface:ILogger
Logs a message at theLevel.FINEST
level. -
finest
Description copied from interface:ILogger
Logs a message with an associated throwable at theLevel.FINEST
level. -
finest
Description copied from interface:ILogger
Logs a throwable at theLevel.FINEST
level. The message of the Throwable will be the logged message. -
isFinestEnabled
public boolean isFinestEnabled()Description copied from interface:ILogger
Checks if theLevel.FINEST
level is enabled.- Specified by:
isFinestEnabled
in interfaceILogger
- Returns:
- true if enabled, false otherwise
-
fine
Description copied from interface:ILogger
Logs a message at theLevel.FINE
level. -
fine
Description copied from interface:ILogger
Logs a message with an associated throwable at theLevel.FINE
level. -
fine
Description copied from interface:ILogger
Logs a throwable at theLevel.FINE
level. The message of the Throwable will be the logged message. -
isFineEnabled
public boolean isFineEnabled()Description copied from interface:ILogger
Checks if theLevel.FINE
level is enabled.- Specified by:
isFineEnabled
in interfaceILogger
- Returns:
- true if enabled, false otherwise
-
info
Description copied from interface:ILogger
Logs a message at theLevel.INFO
level. -
info
Description copied from interface:ILogger
Logs a message with an associated throwable at theLevel.INFO
level. -
info
Description copied from interface:ILogger
Logs a throwable at theLevel.INFO
level. The message of the Throwable will be the logged message. -
isInfoEnabled
public boolean isInfoEnabled()Description copied from interface:ILogger
Checks if theLevel.INFO
level is enabled.- Specified by:
isInfoEnabled
in interfaceILogger
- Returns:
- true if enabled, false otherwise
-
warning
Description copied from interface:ILogger
Logs a message at theLevel.WARNING
level. -
warning
Description copied from interface:ILogger
Logs a throwable at theLevel.WARNING
level. The message of the Throwable will be the logged message. -
warning
Description copied from interface:ILogger
Logs a message with an associated throwable at theLevel.WARNING
level. -
isWarningEnabled
public boolean isWarningEnabled()Description copied from interface:ILogger
Checks if theLevel.WARNING
is enabled.- Specified by:
isWarningEnabled
in interfaceILogger
- Returns:
- true if enabled, false otherwise
-
severe
Description copied from interface:ILogger
Logs a message atLevel.SEVERE
. -
severe
Description copied from interface:ILogger
Logs a throwable at theLevel.SEVERE
level. The message of the Throwable will be the logged message. -
severe
Description copied from interface:ILogger
Logs a message with an associated throwable at theLevel.SEVERE
level. -
isSevereEnabled
public boolean isSevereEnabled()Description copied from interface:ILogger
Checks if theLevel.SEVERE
is enabled.- Specified by:
isSevereEnabled
in interfaceILogger
- Returns:
- true if enabled, false otherwise
-