forked from abel533/guns
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into dev
- Loading branch information
Showing
9 changed files
with
78 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
|
||
<!-- 此xml在spring-boot-1.5.3.RELEASE.jar里 --> | ||
<include resource="org/springframework/boot/logging/logback/base.xml"/> | ||
<!-- 开启后可以通过jmx动态控制日志级别(springboot Admin的功能) --> | ||
<!--<jmxConfigurator/>--> | ||
|
||
<appender name="Console" class="ch.qos.logback.core.ConsoleAppender"> | ||
<Target>System.out</Target> | ||
<encoder> | ||
<pattern>%date [%level] [%thread] %logger{60} [%file : %line] %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
<File>${LOG_PATH}${LOG_FILE}</File> | ||
<encoder> | ||
<pattern>%date [%level] [%thread] %logger{60} [%file : %line] %msg%n</pattern> | ||
</encoder> | ||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
<!-- 添加.gz 历史日志会启用压缩 大大缩小日志文件所占空间 --> | ||
<fileNamePattern>${LOG_PATH}daily/${LOG_FILE}.%d{yyyy-MM-dd}.gz</fileNamePattern> | ||
<maxHistory>30</maxHistory><!-- 保留30天日志 --> | ||
</rollingPolicy> | ||
</appender> | ||
|
||
<!--<logger name="org.springframework" level="error"/>--> | ||
<!--<logger name="jdbc.connection" level="OFF"/>--> | ||
<!--<logger name="org.apache" level="error"/>--> | ||
<!--<logger name="com.alibaba" level="error"/>--> | ||
<!--<logger name="org.apache.kafka.clients.producer.ProducerConfig" level="warn"/>--> | ||
|
||
<root level="INFO"> | ||
<!--<appender-ref ref="Console"/>--> | ||
<appender-ref ref="FILE"/> | ||
</root> | ||
</configuration> |