Package com.iizix
Interface ILoggerRedirector
- All Known Implementing Classes:
Console
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The LoggerRedirector interface is used by the logger to redirect a log event to a source, e.g. from client to be logged in the server.
Method Summary
Modifier and TypeMethodDescriptiondefault void
Disposes and flushes the output of the logger.void
onEventLogged
(LogEntry entry) Called when an event is logged.
Method Details
onEventLogged
Called when an event is logged.- Parameters:
entry
- The log entry.
disposeAndFlush
default void disposeAndFlush()Disposes and flushes the output of the logger. When called, potential queued events are output as the logger implements it, then returns.The default implementation of this method does nothing.