Class LowLevelLogUtil

java.lang.Object
org.apache.logging.log4j.util.LowLevelLogUtil

final class LowLevelLogUtil extends Object
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 Details

  • Constructor Details

    • LowLevelLogUtil

      private LowLevelLogUtil()
  • Method Details

    • 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)
    • logException

      public static void logException(String message, Throwable exception)
    • setOutputStream

      public static void setOutputStream(OutputStream out)
      Sets the underlying OutputStream where exceptions are printed to.
      Parameters:
      out - the OutputStream to log to
    • setWriter

      public static void setWriter(Writer writer)
      Sets the underlying Writer where exceptions are printed to.
      Parameters:
      writer - the Writer to log to