Package com.example.blogs.app.logging
Class MDCKeys
java.lang.Object
com.example.blogs.app.logging.MDCKeys
Defines standard MDC (Mapped Diagnostic Context) keys for consistent structured logging across the application.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe key for the unique identifier of the request, used to trace logs related to a specific request across different components and services.static final StringThe 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
-
Field Details
-
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
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:
-