Skip to content

Commit

Permalink
Easier debugging with logback, trireme-util now uses a build from git…
Browse files Browse the repository at this point in the history
…hub.com/takipi/trireme
  • Loading branch information
chook committed Apr 8, 2019
1 parent 10656bc commit 93e30b2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
15 changes: 8 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,19 @@ repositories {
dependencies {
compile(
"commons-cli:commons-cli:1.4",
"io.apigee.trireme:trireme-node10src:0.9.0",
"io.apigee.trireme:trireme-core:0.9.0",
"io.apigee.trireme:trireme-kernel:0.9.0",
"io.apigee.trireme:trireme-jar:0.9.0",
"org.slf4j:slf4j-api:1.7.7",
"io.apigee.trireme:trireme-node10src:0.9.4",
"io.apigee.trireme:trireme-core:0.9.4",
"io.apigee.trireme:trireme-kernel:0.9.4",
"org.slf4j:slf4j-api:1.7.26",
"ch.qos.logback:logback-classic:1.2.3",
"com.h2database:h2:1.4.196",
"mysql:mysql-connector-java:6.0.6",
"org.postgresql:postgresql:42.2.4",
files([
"libs/ojdbc8.jar"
"libs/ojdbc8.jar",
"libs/takipi-trireme-util-0.9.5-SNAPSHOT.jar"
])
)
)
}

fatJar {
Expand Down
Binary file added libs/takipi-trireme-util-0.9.5-SNAPSHOT.jar
Binary file not shown.
20 changes: 20 additions & 0 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>

<logger name="io.apigee" level="INFO" />

<!-- UNCOMMENT TO DEBUG
<logger name="io.apigee.trireme.util.jdbc" level="TRACE" />
-->

<root level="debug">
<appender-ref ref="STDOUT" />
</root>
</configuration>

0 comments on commit 93e30b2

Please sign in to comment.