Package io.deephaven.io.log
Interface LogSink<T extends LogSink.Element>
- All Known Implementing Classes:
LogSink.Null,LogSinkImpl
public interface LogSink<T extends LogSink.Element>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceOne element of a log sink - guaranteed to be logged without being split over rolling file boundaries, etc.static interfaceLogSink.Factory<T extends LogSink.Element>static interfaceLogSink.Interceptor<T extends LogSink.Element>An interceptor is called with each element logged, *and* with the formatted output.static interfaceLogSink.LogSinkWriter<S extends LogSink<? extends LogSink.Element>>static classstatic classShutdown helpers to force flush of outstanding elements -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptor(LogSink.Interceptor<T> interceptor) You can add as many interceptors to a log sink as you like.voidshutdown()Shutdown cleanly, flushing all current elements.voidShutdown aggressively, without trying to flush.voidWrite an element.
-
Field Details
-
NULL
-
-
Method Details
-
write
Write an element.- Parameters:
e-
-
shutdown
void shutdown()Shutdown cleanly, flushing all current elements. -
terminate
void terminate()Shutdown aggressively, without trying to flush. -
addInterceptor
You can add as many interceptors to a log sink as you like.
-