Interface LogRouter.Route

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 Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Route singletons and utilities.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determines if LogEventLogger.log(LogEvent) maybe called.

    Methods inherited from interface io.jstach.rainbowgum.LogEventLogger

    log