- All Superinterfaces:
AutoCloseable,LogEventLogger,LogLifecycle,LogRouter
- All Known Implementing Classes:
LogRouter.AbstractRouter
- Enclosing interface:
LogRouter
public static sealed interface LogRouter.Router
extends LogRouter, LogEventLogger
permits LogRouter.AbstractRouter (not exhaustive)
Router routes messages to a publisher.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classRouter builder.static interfaceCreates a router.Nested classes/interfaces inherited from interface io.jstach.rainbowgum.LogRouter
LogRouter.AbstractRouter, LogRouter.RootRouter, LogRouter.Route, LogRouter.RouteFlag, LogRouter.Router -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe router name given if no router is explicitly declared.Fields inherited from interface io.jstach.rainbowgum.LogLifecycle
SHUTDOWN -
Method Summary
Modifier and TypeMethodDescriptionstatic LogRouter.Router.BuilderCreates a builder from config.Level resolver.default voidLogs events usually without filtering.Log publisher.default booleanWhether or not the publisher is synchronous.Methods inherited from interface io.jstach.rainbowgum.LogLifecycle
close, startMethods inherited from interface io.jstach.rainbowgum.LogRouter
eventBuilder, route
-
Field Details
-
DEFAULT_ROUTER_NAME
The router name given if no router is explicitly declared.- See Also:
-
-
Method Details
-
levelResolver
Level resolver.- Returns:
- level resolver.
-
publisher
Log publisher.- Returns:
- publisher.
-
synchronous
Whether or not the publisher is synchronous. A synchronous publisher generally blocks.- Returns:
- true if the publisher is synchronous.
-
log
Description copied from interface:LogEventLoggerLogs events usually without filtering. There is no guarantee this call will check if the event should be filtered (threshold is too low) and in general does not on purpose!- Specified by:
login interfaceLogEventLogger- Parameters:
event- event.
-
builder
Creates a builder from config.- Parameters:
name- name of the route which the publisher will inherit.config- config.- Returns:
- builder.
-