Skip to content

Commit

Permalink
feat(#53): set logging level of hibernate for logging query
Browse files Browse the repository at this point in the history
- temporary because Spring Boot DataSource Decorator
(net.ttddyy.dsproxy.listener) is not working at Spring boot 3.0
  • Loading branch information
KimDoubleB committed Jan 21, 2023
1 parent a9e0a42 commit 3567db5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions archive-web/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,23 @@
<appender-ref ref="WARN_ERROR_LOG_FILE"/>
</logger>

<!-- Spring boot 3.0μ—μ„œ μ§€μ›ν•˜μ§€ μ•ŠλŠ” μ΄μŠˆκ°€ 있음 -->
<logger name="net.ttddyy.dsproxy.listener" level="debug" additivity="false">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="LOG_FILE"/>
<appender-ref ref="WARN_ERROR_LOG_FILE"/>
</logger>

<!-- μœ„ λͺ¨λ“ˆμ΄ ν˜„μž¬ 지원이 λ˜μ§€ μ•ŠκΈ°μ— 쿼리 λ‘œκΉ…μ„ μœ„ν•œ μž„μ‹œ 둜거λ₯Ό μΆ”κ°€ -->
<logger name="org.hibernate.SQL" level="debug" additivity="false">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="LOG_FILE"/>
</logger>
<logger name="org.hibernate.type.descriptor.sql" level="trace" additivity="false">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="LOG_FILE"/>
</logger>

<logger name="com.zaxxer.hikari.pool.HikariPool" level="info" additivity="false">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="LOG_FILE"/>
Expand Down

0 comments on commit 3567db5

Please sign in to comment.