Skip to content

Commit

Permalink
サンプルにSQL出力の追加
Browse files Browse the repository at this point in the history
  • Loading branch information
mygreen committed May 4, 2023
1 parent e7df1da commit 2874ee7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ sqlmapper:
table-id-generator:
allocation-size: 1
initial-value: 10
show-sql:
enabled: true
bind-param:
enabled: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<Pattern>.%d{HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{15}) - %msg %n</Pattern>
<!--
<Pattern>.%d{HH:mm:ss.SSS} [%thread] %-5level %logger{15} - %msg %n</Pattern>
-->
</encoder>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>DEBUG</level>
</filter>
</appender>

<!-- 実行SQL出力設定 -->
<logger name="com.github.mygreen.sqlmapper.core.query.SqlLogger" level="DEBUG" additivity="false">
<appender-ref ref="CONSOLE" />
</logger>

<root>
<level value="WARN" />
<appender-ref ref="CONSOLE" />
</root>
</configuration>

0 comments on commit 2874ee7

Please sign in to comment.