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 void
Logs the given message.static void
logException
(String message, Throwable exception) static void
logException
(Throwable exception) static void
Sets the underlying OutputStream where exceptions are printed to.static void
Sets 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
-