@PrivateApi public static class Log4j2Factory.Log4j2Logger extends AbstractLogger
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.
|
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 log(LogEvent logEvent)
ILogger
logEvent
- the logEvent to logpublic void log(Level level, String message)
ILogger
level
- the log levelmessage
- the message to logpublic void log(Level level, String message, Throwable thrown)
ILogger
message
- the message to logthrown
- the Throwable associated to the messagepublic Level getLevel()
ILogger
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.