@PrivateApi public static class Log4j2Factory.Log4j2Logger extends AbstractLogger implements com.hazelcast.logging.impl.InternalLogger
Constructor and Description |
---|
Log4j2Logger(org.apache.logging.log4j.spi.ExtendedLogger logger) |
Modifier and Type | Method and Description |
---|---|
Level |
getLevel()
Gets the logging level.
|
boolean |
isLoggable(Level level)
Checks if a message at the given level is going to be logged by this logger.
|
void |
log(Level level,
String message)
Logs a message at the given level.
|
void |
log(Level level,
String message,
Throwable thrown)
Logs a message with an associated throwable at the given level.
|
void |
log(LogEvent logEvent)
Logs a LogEvent.
|
void |
setLevel(Level level)
Sets the level of this logger to the given level.
|
fine, fine, fine, finest, finest, finest, info, info, info, isFineEnabled, isFinestEnabled, isInfoEnabled, isSevereEnabled, isWarningEnabled, severe, severe, severe, warning, warning, warning
public Log4j2Logger(org.apache.logging.log4j.spi.ExtendedLogger logger)
public void setLevel(Level level)
com.hazelcast.logging.impl.InternalLogger
setLevel
in interface com.hazelcast.logging.impl.InternalLogger
level
- the level to set, can be null
if the underlying
logging framework gives some special meaning to it (like
inheriting the log level from some parent object).public void log(Level level, String message)
ILogger
public void log(Level level, String message, Throwable thrown)
ILogger
public boolean isLoggable(Level level)
ILogger
isLoggable
in interface ILogger
level
- the log levelCopyright © 2024 Hazelcast, Inc.. All rights reserved.