【发布时间】:2018-05-21 10:02:13
【问题描述】:
%replace{%replace{%replace{%msg}{regex1}{substitution1}}{regex2}{substitution2}}{regex3}{substitution3}
我正在尝试从我的日志中替换正则表达式模式并且它可以正常工作。
当%replace 最多使用两次,但是当我尝试替换第三个模式时它停止工作,它只是在日志输出中打印“%replace”。
【问题讨论】:
标签: regex slf4j log4j2 pattern-layout