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
public abstract class AbstractLogger extends java.lang.Object implements ILogger
AbstractILogger
implementation that provides implementations for convenience methods like finest, info, warning and severe.
-
-
Constructor Summary
Constructors Constructor Description AbstractLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fine(java.lang.String message)
Logs a message at theLevel.FINE
level.void
fine(java.lang.String message, java.lang.Throwable thrown)
Logs a message with an associated throwable at theLevel.FINE
level.void
fine(java.lang.Throwable thrown)
Logs a throwable at theLevel.FINE
level.void
finest(java.lang.String message)
Logs a message at theLevel.FINEST
level.void
finest(java.lang.String message, java.lang.Throwable thrown)
Logs a message with an associated throwable at theLevel.FINEST
level.void
finest(java.lang.Throwable thrown)
Logs a throwable at theLevel.FINEST
level.void
info(java.lang.String message)
Logs a message at theLevel.INFO
level.void
info(java.lang.String message, java.lang.Throwable thrown)
Logs a message with an associated throwable at theLevel.INFO
level.void
info(java.lang.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
isSevereEnabled()
Checks if theLevel.SEVERE
is enabled.boolean
isWarningEnabled()
Checks if theLevel.WARNING
is enabled.void
severe(java.lang.String message)
Logs a message atLevel.SEVERE
.void
severe(java.lang.String message, java.lang.Throwable thrown)
Logs a message with an associated throwable at theLevel.SEVERE
level.void
severe(java.lang.Throwable thrown)
Logs a throwable at theLevel.SEVERE
level.void
warning(java.lang.String message)
Logs a message at theLevel.WARNING
level.void
warning(java.lang.String message, java.lang.Throwable thrown)
Logs a message with an associated throwable at theLevel.WARNING
level.void
warning(java.lang.Throwable thrown)
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
-
-
-
-
Method Detail
-
finest
public void finest(java.lang.String message)
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
public void finest(java.lang.String message, java.lang.Throwable thrown)
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
public void finest(java.lang.Throwable thrown)
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
public void fine(java.lang.String message)
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
public void fine(java.lang.String message, java.lang.Throwable thrown)
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
public void fine(java.lang.Throwable thrown)
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
public void info(java.lang.String message)
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
public void info(java.lang.String message, java.lang.Throwable thrown)
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
public void info(java.lang.Throwable thrown)
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
public void warning(java.lang.String message)
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
public void warning(java.lang.Throwable thrown)
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
public void warning(java.lang.String message, java.lang.Throwable thrown)
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
public void severe(java.lang.String message)
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
public void severe(java.lang.Throwable thrown)
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
public void severe(java.lang.String message, java.lang.Throwable thrown)
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
-
-