Skip to content

Commit 7346e5a

Browse files
Logging: add minimal configuration.
1 parent 1d4f3d6 commit 7346e5a

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

dumper/app/src/main/java/com/google/edwmigration/dumper/application/dumper/connector/redshift/AbstractRedshiftConnector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public Handle open(ConnectorArguments arguments) throws Exception {
211211
// Debugging:
212212
// DSILogLevel=0..6;LogPath=C:\temp
213213
// LogLevel 0/1
214-
LOG.debug("URI is " + url);
214+
LOG.trace("URI is " + url);
215215
DataSource dataSource = new SimpleDriverDataSource(driver, url, arguments.getUser(), arguments.getPassword());
216216

217217
return JdbcHandle.newPooledJdbcHandle(dataSource, arguments.getThreadPoolSize());
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<configuration>
2+
3+
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
4+
<!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
5+
<encoder>
6+
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</pattern>
7+
</encoder>
8+
</appender>
9+
10+
<logger name="org.springframework.jdbc.core.JdbcTemplate" level="info"/>
11+
<logger name="org.springframework.jdbc.datasource" level="info" />
12+
<logger name="org.springframework" level="info"/>
13+
<logger name="com.zaxxer.hikari" level="info"/>
14+
15+
<root level="${LOG_LEVEL:-debug}">
16+
<appender-ref ref="CONSOLE" />
17+
</root>
18+
19+
</configuration>

0 commit comments

Comments
 (0)