Interface LoggerOutput

All Known Implementing Classes:
FileLoggerOutput, RotatingFileLoggerOutput, StdStreamsLoggerOutput

public interface LoggerOutput
Represents a location where log messages generated by StandardLoggers are written to.
Since:
2.10
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Closes this LoggerOutput, flushing any remaining data and freeing resources.
    void
    Flushes any buffered data to the underlying output.
    void
    writeLine(String line, String markup)
    Writes the given log line to this LoggerOutput.
  • Method Details

    • writeLine

      void writeLine(String line, String markup)
      Writes the given log line to this LoggerOutput.
      Parameters:
      line - The log message
      markup - Special terminal escape sequences used for text markup
    • flush

      void flush()
      Flushes any buffered data to the underlying output.
    • close

      default void close()
      Closes this LoggerOutput, flushing any remaining data and freeing resources. After a call to this method, the behavior of other methods in this interfaces is undefined.
      Since:
      2.11.0