- java.lang.Object
-
- org.apache.logging.log4j.util.LowLevelLogUtil
-
@InternalApi public final class LowLevelLogUtil extends Object
PrintWriter-based logging utility for classes too low level to useStatusLogger
. Such classes cannot use StatusLogger as StatusLogger orSimpleLogger
depends on them for initialization. Other framework classes should stick to using StatusLogger.- Since:
- 2.6
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
log(String message)
Logs the given message.static void
logException(String message, Throwable exception)
static void
logException(Throwable exception)
static void
setLogger(Logger logger)
Sets the low level logging strategy to use a delegate Logger.
-
-
-
Method Detail
-
setLogger
public static void setLogger(Logger logger)
Sets the low level logging strategy to use a delegate Logger.
-
log
public static void log(String message)
Logs the given message.- Parameters:
message
- the message to log- Since:
- 2.9.2
-
logException
public static void logException(Throwable exception)
-
-