Class LoggingOutputStream

java.lang.Object
java.io.OutputStream
net.mcreator.util.LoggingOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class LoggingOutputStream extends OutputStream
  • Constructor Details

    • LoggingOutputStream

      public LoggingOutputStream(org.apache.logging.log4j.Logger log, org.apache.logging.log4j.Level level) throws IllegalArgumentException
      Creates the Logging instance to flush to the given logger.
      Parameters:
      log - the Logger to write to
      level - the log level
      Throws:
      IllegalArgumentException - in case if one of arguments is null.
  • Method Details