Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0.0
Description
To use structured logging developers usually do
logInfo(log"Lost executor ${MDC(LogKeys.EXECUTOR_ID, "1")}."),
When the structured logging conf is off, the context is not logged.
However if explicitly constructing the LogEntry and calling the public API,
logInfo( MessageWithContext( "Lost executor 1.", new java.util.HashMap[String, String] { put(LogKeys.EXECUTOR_ID.name, "1") } ) )
the conf does not take effect and even when it is off, the context is still logged.
The behavior should be fixed.
Attachments
Issue Links
- links to