Class Sink<T>

java.lang.Object
com.pnfsoftware.jeb.util.logging.Sink<T>
Type Parameters:
T - type of output
Direct Known Subclasses:
BufferSink, StreamSink

public abstract class Sink<T> extends Object
An abstract output sink receiving the logs. Refer to the subclasses.
  • Field Details

    • output

      protected T output
  • Constructor Details

    • Sink

      protected Sink(T output)
  • Method Details

    • getOutput

      public T getOutput()
    • getLogLevel

      public int getLogLevel()
    • setLogLevel

      public void setLogLevel(int logLevel)
    • isPrefixWithTimestamp

      public boolean isPrefixWithTimestamp()
    • setPrefixWithTimestamp

      public void setPrefixWithTimestamp(boolean prefixWithTimestamp)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object