Package com.hazelcast.logging
Class Log4j2Factory.Log4j2Logger
java.lang.Object
com.hazelcast.logging.AbstractLogger
com.hazelcast.logging.Log4j2Factory.Log4j2Logger
- All Implemented Interfaces:
com.hazelcast.internal.tpcengine.logging.TpcLogger,ILogger,com.hazelcast.logging.impl.InternalLogger
- Enclosing class:
- Log4j2Factory
@PrivateApi
public static class Log4j2Factory.Log4j2Logger
extends AbstractLogger
implements com.hazelcast.logging.impl.InternalLogger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLevel()Gets the logging level.booleanisLoggable(Level level) Checks if a message at the given level is going to be logged by this logger.voidLogs a LogEvent.voidLogs a message at the given level.voidLogs a message with an associated throwable at the given level.voidSets the level of this logger to the given level.Methods inherited from class com.hazelcast.logging.AbstractLogger
fine, fine, fine, finest, finest, finest, info, info, info, isFineEnabled, isFinestEnabled, isInfoEnabled, isSevereEnabled, isWarningEnabled, severe, severe, severe, warning, warning, warning
-
Constructor Details
-
Log4j2Logger
public Log4j2Logger(org.apache.logging.log4j.spi.ExtendedLogger logger)
-
-
Method Details
-
setLevel
Description copied from interface:com.hazelcast.logging.impl.InternalLoggerSets the level of this logger to the given level.- Specified by:
setLevelin interfacecom.hazelcast.logging.impl.InternalLogger- Parameters:
level- the level to set, can benullif the underlying logging framework gives some special meaning to it (like inheriting the log level from some parent object).
-
log
Description copied from interface:ILoggerLogs a LogEvent. -
log
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLoggerLogs a message at the given level.- Specified by:
login interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger- Parameters:
level- the log levelmessage- the message to log
-
log
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLoggerLogs a message with an associated throwable at the given level.- Specified by:
login interfacecom.hazelcast.internal.tpcengine.logging.TpcLoggermessage- the message to logthrown- the Throwable associated to the message
-
getLevel
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLoggerGets the logging level.- Specified by:
getLevelin interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger- Returns:
- the logging level
-
isLoggable
Description copied from interface:com.hazelcast.internal.tpcengine.logging.TpcLoggerChecks if a message at the given level is going to be logged by this logger.- Specified by:
isLoggablein interfacecom.hazelcast.internal.tpcengine.logging.TpcLogger- Parameters:
level- the log level- Returns:
- true if this logger will log messages for the given level, false otherwise
-