Java logback 编码器模式文档在哪里
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3881242/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where is logback encoder pattern documentation
提问by pakore
I've gone through all the documentationof logbackand I can't find anywhere the documentation to configure the encoder's pattern when logging, such as:
我已经浏览了logback 的所有文档,但在任何地方都找不到在日志记录时配置编码器模式的文档,例如:
<encoder>
<pattern>%d{HH:mm:ss.SSS} %-4relative %-5level %logger{35} - %msg%n</pattern>
</encoder>
I would like a table (like the one that log4j has) explaining the different options to configure the pattern.
我想要一张表格(就像 log4j 有的表格)解释配置模式的不同选项。
Where is the documentation of the pattern? Maybe they are defined in another project?
模式的文档在哪里?也许它们是在另一个项目中定义的?
采纳答案by anirvan
Probably you should take a look at Chapter 6: Layouts...
也许你应该看看第 6 章:布局......