Module io.jstach.rainbowgum.slf4j


module io.jstach.rainbowgum.slf4j
SLF4J 2.0 implementation.

Rainbow Gum SLF4J implementation supports:

However there is currently no Marker support.

Rainbow Gum supports key value pairs in LoggingEventBuilder by overlaying on top of the current MDC at the time the event is constructed and put into the events key values. The value parameter in LoggingEventBuilder.addKeyValue(String,Object) are converted to String immediately as only String values are supported at this time.

Rainbow Gum SLF4J implementation is unique in that it has two special implementation of loggers:

  • Level Logger - logger based on level threshold and can never change!
  • Changing Logger - level and other configuration can change.
Other logging implementations like Logback by default use something analogous to changing loggers which require a constant check if the level threshold has changed. Level loggers do not need to do that check. Unless changing loggers is turned on by default Level Loggers are used which are close to zero cost for discarding events.
See Also: