-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#135 | Application Logs Have Been Wrote to Text Files for Reading Log…
…s from Server (#173)
- Loading branch information
1 parent
e4fc7ea
commit 9e191dd
Showing
3 changed files
with
35 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<configuration scan="true"> | ||
<include resource="org/springframework/boot/logging/logback/base.xml"/> | ||
|
||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
<prudent>true</prudent> | ||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
<fileNamePattern>.logs/be/ays_%d{ddMMyyyy}.log</fileNamePattern> | ||
</rollingPolicy> | ||
<encoder> | ||
<charset>utf-8</charset> | ||
<Pattern>%d %-5level [%thread] %logger{0}: %msg%n</Pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="ASYNC" class="ch.qos.logback.classic.AsyncAppender"> | ||
<queueSize>512</queueSize> | ||
<appender-ref ref="FILE"/> | ||
</appender> | ||
|
||
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"> | ||
<resetJUL>true</resetJUL> | ||
</contextListener> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="ASYNC"/> | ||
</root> | ||
|
||
</configuration> |