zentol commented on code in PR #24292:
URL: https://github.com/apache/flink/pull/24292#discussion_r1489255700


##########
docs/content.zh/docs/deployment/advanced/logging.md:
##########
@@ -40,6 +40,21 @@ Flink 中的日志记录是使用 [SLF4J](http://www.slf4j.org/) 日志接口实
 
 <a name="configuring-log4j-2"></a>
 
+### Structured logging
+
+Flink adds the following fields to 
[MDC](https://www.slf4j.org/api/org/slf4j/MDC.html) of most of the relevant log 
messages (experimental feature):
+- Job ID
+    - key: `flink-job-id`

Review Comment:
   With something like this?
   ```
   appender.console.json.eventTemplateAdditionalField[0].type = 
EventTemplateAdditionalField
   appender.console.json.eventTemplateAdditionalField[0].key = flink.job.id
   appender.console.json.eventTemplateAdditionalField[0].value = {"$resolver": 
"mdc", "key": "flink-job-id"}
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to