I’m using kotlin-logging, finding that it seems pr...
# kotlin-logging
c
I’m using kotlin-logging, finding that it seems pretty random but sometime you have to add a newline or your next log message ends up stuck to the end of the prior one…
o
codeslubber: I think it is an issue with the underlying logging framework you use. what is it? Androind?
c
no, doing it in a plain kotlin project, I think I added logback?
// logging compile ‘org.slf4jslf4j api1.7.7’ compile ‘ch.qos.logbacklogback classic1.+’ compile ‘io.github.microutilskotlin logging1.4.4’
o
so it is best first to check if its a logback issue
because kotlin-logging and slf4j are just facades to that matter
c
yeah good point ..
is there a better option?
the main reason to use logback was the ability to not have to check log levels
but clearly that is done in kotlin-logging already
o
log4j2 is a fair alternative, but I find it hard to believe it is a bug in logback. maybe something in the configuration of it
try also to set explicitly latest version of logback: 1.2.3
maybe its an old bug
c
yeah found a thread that ceki weighed in on on SO
it’s weird that it’s random
o
it ususally means a missing lock 🙂