为了账号安全,请及时绑定邮箱和手机立即绑定

logback %logger{56}, 这56代表什么?

logback %logger{56}, 这56代表什么?

泛舟湖上清波郎朗 2019-01-19 04:23:03
<?xml version="1.0" encoding="UTF-8"?> <configuration> <property name="LOG_HOME" value="e:/log"/> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --> <encoder> <pattern>【%-5level】 %d{YYYY-MM-DD HH:mm:ss.SSS} [%thread] %logger{36} - %msg%n</pattern> </encoder> </appender> <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">   <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">    <fileNamePattern>LOG_HOME/logFile.%d{yyyy-MM-dd}.%i.log</fileNamePattern>     <maxHistory>30</maxHistory> <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> <!-- or whenever the file size reaches 64 MB --> <maxFileSize>4 KB</maxFileSize> </timeBasedFileNamingAndTriggeringPolicy> </rollingPolicy>     <encoder>     <pattern>【%-5level】 %d{YYYY-MM-dd HH:mm:ss.SSS} [%thread] %logger{56} - %msg%n</pattern> <charset>UTF-8</charset>     </encoder>   </appender> <root level="debug"> <appender-ref ref="FILE" /> </root> </configuration>请输入代码
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 914 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信