Interface UltiPanelLogTransmitter.AgentLineSink

Enclosing class:
UltiPanelLogTransmitter

static interface UltiPanelLogTransmitter.AgentLineSink
Receives one redacted console line for the v2 log.lines stream (plan 22-22).
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Asked before a line is built: while it answers false the transmitter neither redacts nor hands over anything, so a connection that does not take lines costs a logging thread nothing (22-22 fix).
    void
    offer(long timestamp, Level level, String message)
     
  • Method Details

    • offer

      void offer(long timestamp, Level level, String message)
      Parameters:
      timestamp - the line's time in milliseconds since the epoch
      level - the line's level
      message - the redacted message, with the redacted stack trace appended on the following lines
    • accepting

      default boolean accepting()
      Asked before a line is built: while it answers false the transmitter neither redacts nor hands over anything, so a connection that does not take lines costs a logging thread nothing (22-22 fix).
      Returns:
      whether a line offered now would be sent