Skip to content

Commit

Permalink
Merge pull request #323 from pahnjy/develop
Browse files Browse the repository at this point in the history
Log 수정 #320
  • Loading branch information
pahnjy authored Jan 5, 2017
2 parents b349dd6 + 4ad6b08 commit 8f4429f
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions so-web/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" />
<!-- ConsoleAppender Example -->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>[%d{yyyy-MM-dd HHmmss.SSS}] [%5level] [%16.16thread{15}] [%-35logger{35}] : %msg %n</pattern>
<!-- <pattern>%d{ISO8601} %5level [%15thread] %-35logger{35} : %msg %n</pattern> -->
</encoder>
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>%msg %n</pattern>
</layout>
</appender>

<!-- RollingFileAppender Example -->
<appender name="ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>so-log.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- rollover daily -->
<!-- rollover daily -->SOLogger
<fileNamePattern>so-log-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
Expand All @@ -24,10 +19,14 @@
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<encoder>
<pattern>[%d{yyyy-MM-dd HHmmss.SSS}] [%5level] [%16.16thread{15}] [%-35logger{35}] : %msg %n</pattern>
<pattern>%msg %n</pattern>
</encoder>
</appender>

<logger name="com.pineone.icbms.so" level="DEBUG">
<appender-ref ref="ROLLING" />
</logger>
<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>

0 comments on commit 8f4429f

Please sign in to comment.