Skip to content

Commit

Permalink
fix: local, dev에서만 debug 옵션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kimminkyeu committed Jan 8, 2025
1 parent b4bd3a6 commit 0bb0e93
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions backend/baguni-batch/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,11 @@
</appender>

<!-- ``````````````````````` LOGGER SETTING ```````````````````````````` -->
<!-- "additivity=false"를 하면 해당 <logger>에서만 로깅 되고, 다른 곳으로 전달 되지 않는다.
(ref: https://mkyong.com/logging/logback-duplicate-log-messages/) -->
<!-- (1) 프로젝트 전체 로그 설정 -->
<!-- <logger name="root" level="debug" additivity="false">-->
<!-- <appender-ref ref="CONSOLE"/>-->
<!-- </logger>-->
<springProfile name="!prod">
<logger name="root" level="debug" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>
</springProfile>
<logger name="baguni" level="info" additivity="false">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="APP-LOG-FILE"/>
Expand Down

0 comments on commit 0bb0e93

Please sign in to comment.