Package com.hazelcast.logging
Class AbstractLogger
java.lang.Object
com.hazelcast.logging.AbstractLogger
- All Implemented Interfaces:
com.hazelcast.internal.tpcengine.logging.TpcLogger
,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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.hazelcast.logging.ILogger
fine, fine, fine, fine, fine, fine, finest, finest, finest, finest, finest, finest, log
Methods inherited from interface com.hazelcast.internal.tpcengine.logging.TpcLogger
getLevel, isLoggable, log, log
-
Constructor Details
-
AbstractLogger
public AbstractLogger()
-
-
Method Details
-
finest
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Logs a message at theLevel.FINEST
level.- Specified by:
finest
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Parameters:
message
- the message to log
-
finest
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Logs a message with an associated throwable at theLevel.FINEST
level.- Specified by:
finest
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Parameters:
message
- the message to logthrown
- the Throwable associated to the message
-
finest
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Logs a throwable at theLevel.FINEST
level. The message of the Throwable will be the logged message.- Specified by:
finest
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Parameters:
thrown
- the Throwable to log
-
isFinestEnabled
public boolean isFinestEnabled()Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Checks if theLevel.FINEST
level is enabled.- Specified by:
isFinestEnabled
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Returns:
- true if enabled, false otherwise
-
fine
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Logs a message at theLevel.FINE
level.- Specified by:
fine
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Parameters:
message
- the message to log
-
fine
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Logs a message with an associated throwable at theLevel.FINE
level.- Specified by:
fine
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Parameters:
message
- the message to logthrown
- the Throwable associated to the message
-
fine
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Logs a throwable at theLevel.FINE
level. The message of the Throwable will be the logged message.- Specified by:
fine
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Parameters:
thrown
- the Throwable to log
-
isFineEnabled
public boolean isFineEnabled()Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Checks if theLevel.FINE
level is enabled.- Specified by:
isFineEnabled
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Returns:
- true if enabled, false otherwise
-
info
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Logs a message at theLevel.INFO
level.- Specified by:
info
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Parameters:
message
- the message to log
-
info
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Logs a message with an associated throwable at theLevel.INFO
level.- Specified by:
info
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Parameters:
message
- the message to logthrown
- the Throwable associated to the message
-
info
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Logs a throwable at theLevel.INFO
level. The message of the Throwable will be the logged message.- Specified by:
info
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Parameters:
thrown
- the Throwable to log
-
isInfoEnabled
public boolean isInfoEnabled()Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Checks if theLevel.INFO
level is enabled.- Specified by:
isInfoEnabled
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Returns:
- true if enabled, false otherwise
-
warning
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Logs a message at theLevel.WARNING
level.- Specified by:
warning
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Parameters:
message
- the message to log
-
warning
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Logs a throwable at theLevel.WARNING
level. The message of the Throwable will be the logged message.- Specified by:
warning
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Parameters:
thrown
- the Throwable to log
-
warning
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Logs a message with an associated throwable at theLevel.WARNING
level.- Specified by:
warning
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Parameters:
message
- the message to logthrown
- the Throwable associated to the message
-
isWarningEnabled
public boolean isWarningEnabled()Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Checks if theLevel.WARNING
is enabled.- Specified by:
isWarningEnabled
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Returns:
- true if enabled, false otherwise
-
severe
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Logs a message atLevel.SEVERE
.- Specified by:
severe
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Parameters:
message
- the message to log.
-
severe
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Logs a throwable at theLevel.SEVERE
level. The message of the Throwable will be the logged message.- Specified by:
severe
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Parameters:
thrown
- the Throwable to log
-
severe
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Logs a message with an associated throwable at theLevel.SEVERE
level.- Specified by:
severe
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Parameters:
message
- the message to logthrown
- the Throwable associated to the message
-
isSevereEnabled
public boolean isSevereEnabled()Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLogger
Checks if theLevel.SEVERE
is enabled.- Specified by:
isSevereEnabled
in interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger
- Returns:
- true if enabled, false otherwise
-