- All Superinterfaces:
LogEventLogger
- All Known Implementing Classes:
LogRouter.AbstractRouter,LogRouter.Route.Routes
- Enclosing interface:
LogRouter
public static sealed interface LogRouter.Route
extends LogEventLogger
permits LogRouter.Route.Routes, LogRouter.AbstractRouter (not exhaustive)
A route is similar to a SLF4J Logger or System Logger but has a much simpler
contract.
The proper usage of Route in most cases is to call
isEnabled() before
calling LogEventLogger.log(LogEvent).
That is LogEventLogger.log(LogEvent) does not do any checking if the event is allowed
furthermore by first checking if isEnabled() is true one can decide
whether or not to create a LogEvent.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumRoute singletons and utilities. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines ifLogEventLogger.log(LogEvent)maybe called.Methods inherited from interface io.jstach.rainbowgum.LogEventLogger
log
-
Method Details
-
isEnabled
boolean isEnabled()Determines ifLogEventLogger.log(LogEvent)maybe called.- Returns:
- true if log can be called.
-