Class MDCKeys

java.lang.Object
com.example.blogs.app.logging.MDCKeys

public final class MDCKeys extends Object
Defines standard MDC (Mapped Diagnostic Context) keys for consistent structured logging across the application.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The key for the unique identifier of the request, used to trace logs related to a specific request across different components and services.
    static final String
    The key for the user identifier, used to associate logs with a specific user, which can be helpful for debugging and monitoring user-related activities.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • REQUEST_ID

      public static final String REQUEST_ID
      The key for the unique identifier of the request, used to trace logs related to a specific request across different components and services.
      See Also:
    • USER_ID

      public static final String USER_ID
      The key for the user identifier, used to associate logs with a specific user, which can be helpful for debugging and monitoring user-related activities.
      See Also: