Interface LogSink<T extends LogSink.Element>

    • Method Detail

      • write

        void write​(T e)
        Write an element.
        Parameters:
        e -
      • shutdown

        void shutdown()
        Shutdown cleanly, flushing all current elements.
      • terminate

        void terminate()
        Shutdown aggressively, without trying to flush.
      • addInterceptor

        void addInterceptor​(LogSink.Interceptor<T> interceptor)
        You can add as many interceptors to a log sink as you like.