Interface LogSink


public interface LogSink
Where log lines go. The default writes each line to standard output, the stream a container platform collects; install another with Logging.setSink(LogSink) to forward them elsewhere.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(Level level, String logger, String line, Throwable error)
    Writes one line.
  • Method Details

    • write

      void write(Level level, String logger, String line, Throwable error)
      Writes one line.
      Parameters:
      level - the line's level
      logger - the name of the logger that wrote it
      line - the whole formatted line, timestamp to message, with no newline
      error - the throwable passed with the message, or null