Skip to content

Commit

Permalink
fix: #552 로그 설정 변경 (#555)
Browse files Browse the repository at this point in the history
* fix: logback-spring.xml 설정 변경

* fix: logback-spring.xml 포맷 변경
  • Loading branch information
apptie authored and swonny committed Oct 6, 2023
1 parent b10fcba commit 591666b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions backend/ddang/src/main/resources/log/file-error-logging.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
</pattern>
</providers>
<charset>utf-8</charset>
<jsonGeneratorDecorator class="net.logstash.logback.decorate.CompositeJsonGeneratorDecorator">
<decorator class="net.logstash.logback.decorate.PrettyPrintingJsonGeneratorDecorator"/>
</jsonGeneratorDecorator>
</encoder>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,17 @@

<encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
<providers>
<timestamp/>
<timestamp>
<fieldName>timeStamp</fieldName>
<pattern>yyyy-MM-dd HH:mm:ss</pattern>
</timestamp>
<mdc/>
<message/>
</providers>
<timestampPattern>yyyy-MM-dd HH:mm:ss.SSSSSS</timestampPattern>
<charset>utf8</charset>
<jsonGeneratorDecorator class="net.logstash.logback.decorate.CompositeJsonGeneratorDecorator">
<decorator class="net.logstash.logback.decorate.PrettyPrintingJsonGeneratorDecorator"/>
</jsonGeneratorDecorator>
</encoder>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
Expand Down
3 changes: 3 additions & 0 deletions backend/ddang/src/main/resources/log/file-warn-logging.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
<message/>
</providers>
<charset>utf-8</charset>
<jsonGeneratorDecorator class="net.logstash.logback.decorate.CompositeJsonGeneratorDecorator">
<decorator class="net.logstash.logback.decorate.PrettyPrintingJsonGeneratorDecorator"/>
</jsonGeneratorDecorator>
</encoder>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
Expand Down

0 comments on commit 591666b

Please sign in to comment.