commit 2d0b2e24f0e91c16a479bc2e8545a4d2461d9ce4
parent 404e610a5898be5cd56e52b7543473fb785da18e
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Tue, 8 Oct 2019 16:55:47 +0200
get logback.xml picked up
Diffstat:
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/build.gradle b/build.gradle
@@ -43,6 +43,7 @@ subprojects {
compile "javax.activation:activation:1.1"
compile "org.glassfish.jaxb:jaxb-runtime:2.3.0"
testCompile group: 'junit', name: 'junit', version: '4.12'
+ runtime rootProject.files("resources")
}
}
\ No newline at end of file
diff --git a/sandbox/src/test/kotlin/LogTest.kt b/sandbox/src/test/kotlin/LogTest.kt
@@ -4,11 +4,18 @@ import org.junit.Assert
import org.junit.Test
import org.junit.Assert.*
import org.slf4j.LoggerFactory
+import java.net.URLClassLoader
class LogTest {
@Test
fun logLine() {
+
+ val cl = ClassLoader.getSystemClassLoader()
+ val urls = (cl as URLClassLoader).urLs
+ for (url in urls) {
+ // println(url)
+ }
val logger = LoggerFactory.getLogger("sandbox.log.test")
logger.info("line")
}