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 interface
One element of a log sink - guaranteed to be logged without being split over rolling file boundaries, etc.static interface
LogSink.Factory<T extends LogSink.Element>
static interface
LogSink.Interceptor<T extends LogSink.Element>
An interceptor is called with each element logged, *and* with the formatted output.static interface
LogSink.LogSinkWriter<S extends LogSink<? extends LogSink.Element>>
static class
static class
Shutdown helpers to force flush of outstanding elements -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInterceptor
(LogSink.Interceptor<T> interceptor) You can add as many interceptors to a log sink as you like.void
shutdown()
Shutdown cleanly, flushing all current elements.void
Shutdown aggressively, without trying to flush.void
Write 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.
-