Package org.apache.logging.log4j.util
Class LowLevelLogUtil
java.lang.Object
org.apache.logging.log4j.util.LowLevelLogUtil
PrintWriter-based logging utility for classes too low level to use
StatusLogger.
Such classes cannot use StatusLogger as StatusLogger or SimpleLogger depends
on them for initialization. Other framework classes should stick to using StatusLogger.- Since:
- 2.6
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidLogs the given message.static voidlogException(String message, Throwable exception) static voidlogException(Throwable exception) static voidSets the underlying OutputStream where exceptions are printed to.static voidSets the underlying Writer where exceptions are printed to.
-
Field Details
-
writer
-
-
Constructor Details
-
LowLevelLogUtil
private LowLevelLogUtil()
-
-
Method Details
-
log
Logs the given message.- Parameters:
message- the message to log- Since:
- 2.9.2
-
logException
-
logException
-
setOutputStream
Sets the underlying OutputStream where exceptions are printed to.- Parameters:
out- the OutputStream to log to
-
setWriter
Sets the underlying Writer where exceptions are printed to.- Parameters:
writer- the Writer to log to
-