Annotation Type ContextVar


@Target(PARAMETER) @Retention(RUNTIME) public @interface ContextVar
Annotates a parameter in a @LogContext annotated method that indicates that it is to be added to the logger's MDC
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details

    • value

      String value
      Returns:
      The key that will be used in the logged message MDC