jhannes / logevents

An easy-to-extend implementation of SLF4J with batteries included and sensible defaults
Other
42 stars 8 forks source link

Elevate log level based on MDC #43

Closed jhannes closed 3 years ago

jhannes commented 3 years ago

In order to do detailed tracing for selected users, it would be nice to have a possibility to elevate the log level based on an MDC-value. Perhaps syntax like:

logger.com.example.db=DEBUG,TRACE@mdc:user=johannes|supertester console
logger.com.example.mongo=INFO,DEBUG@mdc:user=johannes|supertester
logger.com.example=INFO console