Interface LogAppender

All Known Implementing Classes:
FileAppender, StdOutAppender

public interface LogAppender
Trait for log appender classes.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    append(play.api.libs.json.JsObject baseMsg, String category)
    Appends a new log message
    scala.concurrent.Future<scala.runtime.BoxedUnit>
    Called just before the logger shuts down
    scala.concurrent.Future<scala.runtime.BoxedUnit>
    Stops a log appender
  • Method Details

    • append

      void append(play.api.libs.json.JsObject baseMsg, String category)
      Appends a new log message

      Parameters:
      baseMsg - the message to be logged
      category - the kinds of log (for example, "common")
    • finish

      scala.concurrent.Future<scala.runtime.BoxedUnit> finish()
      Called just before the logger shuts down

      Returns:
      a future that is completed when finished
    • stop

      scala.concurrent.Future<scala.runtime.BoxedUnit> stop()
      Stops a log appender

      Returns:
      a future that is completed when stopped