Class LogWriter

java.lang.Object
java.io.Writer
icyllis.modernui.core.LogWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class LogWriter extends Writer
Buffered writer to log4j logger, auto flush on newline.
  • Constructor Details

    • LogWriter

      public LogWriter(@NonNull org.apache.logging.log4j.Logger logger)
    • LogWriter

      public LogWriter(@NonNull org.apache.logging.log4j.Logger logger, @NonNull org.apache.logging.log4j.Level level, @Nullable org.apache.logging.log4j.Marker marker)
      Create a new Writer that sends to the log with the given tag.
  • Method Details