This repository was archived by the owner on Oct 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +20
-14
lines changed Expand file tree Collapse file tree 5 files changed +20
-14
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,6 @@ subprojects {
6666 " testImplementation" (platform(" org.testcontainers:testcontainers-bom:1.16.0" ))
6767 " testImplementation" (" org.junit.jupiter:junit-jupiter-api:5.8.0" )
6868 " testRuntimeOnly" (" org.junit.jupiter:junit-jupiter-engine:5.8.0" )
69- " testRuntimeOnly" (" ch.qos.logback:logback-classic:1.2.6" )
7069 " testRuntimeOnly" (" com.h2database:h2:1.4.200" )
7170 " testRuntimeOnly" (" mysql:mysql-connector-java:8.0.26" )
7271 " testRuntimeOnly" (" com.oracle.database.jdbc:ojdbc8-production:18.15.0.0" )
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ dependencies {
1919 annotationProcessor(" org.seasar.doma:doma-processor:${domaVersion} " )
2020 implementation(" org.seasar.doma:doma-core:${domaVersion} " )
2121 implementation(" org.seasar.doma:doma-slf4j:${domaVersion} " )
22+ implementation(" ch.qos.logback:logback-classic:1.2.6" )
2223 implementation(" org.junit.jupiter:junit-jupiter-api:5.8.0" )
2324}
2425
Original file line number Diff line number Diff line change 1+ package org .seasar .doma .it ;
2+
3+ import ch .qos .logback .classic .BasicConfigurator ;
4+ import ch .qos .logback .classic .Level ;
5+ import ch .qos .logback .classic .Logger ;
6+ import ch .qos .logback .classic .LoggerContext ;
7+
8+ public class LogConfigurator extends BasicConfigurator {
9+
10+ @ Override
11+ public void configure (LoggerContext lc ) {
12+ super .configure (lc );
13+ Logger logger = lc .getLogger ("org.seasar.doma.jdbc.LogKind.SQL" );
14+ logger .setLevel (Level .DEBUG );
15+ Logger rootLogger = lc .getLogger (Logger .ROOT_LOGGER_NAME );
16+ rootLogger .setLevel (Level .INFO );
17+ }
18+ }
Original file line number Diff line number Diff line change 1+ org.seasar.doma.it.LogConfigurator
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments