Flowable 6.6.0 BPMN用户指南-(2)配置 - 2.17 映射诊断上下文

Flowable 6.6.0 用户指南相关文档下载


《Flowable 6.6.0 BPMN用户指南》

2. 配置

有关Flowable文档的其他资料,参见:

《Flowable文档大全》

2.17 映射诊断上下文(Mapped Diagnostic Contexts)

Flowable supports the Mapped Diagnostic Contexts feature of SLF4j. This basic information is passed to the underlying logger along with what is going to be logged:

  • processDefinition Id as mdcProcessDefinitionID
  • processInstance Id as mdcProcessInstanceID
  • execution Id as mdcExecutionId

Flowable支持SLF4j的映射诊断上下文(Mapped Diagnostic Contexts)功能。下面的基本信息连同要记录的日志内容一起传递给了底层日志记录器(logger):

  • processDefinition Id用作mdcProcessDefinitionID
  • processInstance Id 用作mdcProcessInstanceID
  • execution Id用作 mdcExecutionId

None of this information is logged by default. The logger can be configured to show them in your desired format, extra to the usual logged messages. For example in Log4j the following sample layout definition causes the logger to show the above mentioned information:

默认情况下,不会记录这些信息。除了通常记录的日志消息之外,日志记录器(logger)可以配置为以您所需的格式显示日志。例如,在Log4j中,以下样例布局定义会导致日志记录器显示上述信息:

log4j.appender.consoleAppender.layout.ConversionPattern=ProcessDefinitionId=%X{mdcProcessDefinitionID}
executionId=%X{mdcExecutionId} mdcProcessInstanceID=%X{mdcProcessInstanceID} mdcBusinessKey=%X{mdcBusinessKey} %m%n

This is useful when the logs contain information that needs to checked in real time, by means of a log analyzer, for example.

当日志包含了需要实时检查的信息时,例如采用日志分析器时,这很有用。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

月满闲庭

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值