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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs a message at theLevel.FINElevel.voidLogs a message with an associated throwable at theLevel.FINElevel.voidLogs a throwable at theLevel.FINElevel.voidLogs a message at theLevel.FINESTlevel.voidLogs a message with an associated throwable at theLevel.FINESTlevel.voidLogs a throwable at theLevel.FINESTlevel.voidLogs a message at theLevel.INFOlevel.voidLogs a message with an associated throwable at theLevel.INFOlevel.voidLogs a throwable at theLevel.INFOlevel.booleanChecks if theLevel.FINElevel is enabled.booleanChecks if theLevel.FINESTlevel is enabled.booleanChecks if theLevel.INFOlevel is enabled.booleanChecks if theLevel.SEVEREis enabled.booleanChecks if theLevel.WARNINGis enabled.voidLogs a message atLevel.SEVERE.voidLogs a message with an associated throwable at theLevel.SEVERElevel.voidLogs a throwable at theLevel.SEVERElevel.voidLogs a message at theLevel.WARNINGlevel.voidLogs a message with an associated throwable at theLevel.WARNINGlevel.voidLogs a throwable at theLevel.WARNINGlevel.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hazelcast.logging.ILogger
fine, fine, fine, fine, fine, fine, finest, finest, finest, finest, finest, finest, logMethods 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.TpcLoggerLogs a message at theLevel.FINESTlevel.- Specified by:
finestin interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger- Parameters:
message- the message to log
-
finest
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLoggerLogs a message with an associated throwable at theLevel.FINESTlevel.- Specified by:
finestin 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.TpcLoggerLogs a throwable at theLevel.FINESTlevel. The message of the Throwable will be the logged message.- Specified by:
finestin 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.TpcLoggerChecks if theLevel.FINESTlevel is enabled.- Specified by:
isFinestEnabledin interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger- Returns:
- true if enabled, false otherwise
-
fine
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLoggerLogs a message at theLevel.FINElevel.- Specified by:
finein interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger- Parameters:
message- the message to log
-
fine
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLoggerLogs a message with an associated throwable at theLevel.FINElevel.- Specified by:
finein 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.TpcLoggerLogs a throwable at theLevel.FINElevel. The message of the Throwable will be the logged message.- Specified by:
finein 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.TpcLoggerChecks if theLevel.FINElevel is enabled.- Specified by:
isFineEnabledin interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger- Returns:
- true if enabled, false otherwise
-
info
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLoggerLogs a message at theLevel.INFOlevel.- Specified by:
infoin interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger- Parameters:
message- the message to log
-
info
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLoggerLogs a message with an associated throwable at theLevel.INFOlevel.- Specified by:
infoin 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.TpcLoggerLogs a throwable at theLevel.INFOlevel. The message of the Throwable will be the logged message.- Specified by:
infoin 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.TpcLoggerChecks if theLevel.INFOlevel is enabled.- Specified by:
isInfoEnabledin interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger- Returns:
- true if enabled, false otherwise
-
warning
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLoggerLogs a message at theLevel.WARNINGlevel.- Specified by:
warningin interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger- Parameters:
message- the message to log
-
warning
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLoggerLogs a throwable at theLevel.WARNINGlevel. The message of the Throwable will be the logged message.- Specified by:
warningin interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger- Parameters:
thrown- the Throwable to log
-
warning
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLoggerLogs a message with an associated throwable at theLevel.WARNINGlevel.- Specified by:
warningin 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.TpcLoggerChecks if theLevel.WARNINGis enabled.- Specified by:
isWarningEnabledin interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger- Returns:
- true if enabled, false otherwise
-
severe
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLoggerLogs a message atLevel.SEVERE.- Specified by:
severein interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger- Parameters:
message- the message to log.
-
severe
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLoggerLogs a throwable at theLevel.SEVERElevel. The message of the Throwable will be the logged message.- Specified by:
severein interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger- Parameters:
thrown- the Throwable to log
-
severe
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLoggerLogs a message with an associated throwable at theLevel.SEVERElevel.- Specified by:
severein 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.TpcLoggerChecks if theLevel.SEVEREis enabled.- Specified by:
isSevereEnabledin interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger- Returns:
- true if enabled, false otherwise
-