Add context to server side log messages #109
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature Request
Summary
Expanding on #60, the log messages should contain additional context i.e.
SessionIdand the request id.Required workarround
The only workarround would be to embed them in the log message itself:
Description
Every log message associated with working with a request would contain the SessionId and request id.
There will be no alteration for the UserId, as it would be too confusing.
Normal log messages won't have the additional fields:
Log4J2 supports the Mapped Diagnostic Context (short MDC) to embed values into the log message, without explicitly embedding them into the log message. These can be set by the SessionReader after reading the RawPacket.
To differentiate between the log message with and without special fields, the RoutingAppender with the PatternLayout can be used to check for the presence or absence of keys.
Checklist
assigned to @lars.winzer
Task will be moved to Milestone 6