Hey all. I have a project that has a dependency th...
# kotlin-logging
s
Hey all. I have a project that has a dependency that has a bunch of log statements using Kotlin logger. When I run my project, I can see the depdency's DEBUG and INFO level logs, but not TRACE level logs (which I need to see). I have tried slf4j
SimpleLogger
with configuration
System.setProperty(org.slf4j.impl.SimpleLogger.DEFAULT_LOG_LEVEL_KEY, "TRACE")
but could still not see trace level logs. I then switched to
slf4j-log4j12
to rule out
SimpleLogger
issues, with config file
Copy code
log4j.rootLogger=TRACE, STDOUT
log4j.logger.deng=TRACE
log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
log4j.appender.STDOUT.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
and still no trace logs show. Any ideas what I'm doing wrong?
o
Maybe you can try to print the root log level when the app starts?