https://kotlinlang.org logo
#kotlin-logging
Title
# kotlin-logging
h

holgerbrandl

11/22/2021, 8:53 PM
Hi there, is there way to set a log-level not per class/package but on a per instance level when using common logging APIs (slf4j, logback, kotlin-logging)?
o

oshai

11/23/2021, 7:21 PM
the easiest way that I know of is with different logger names (you can give each instance a different name)
maybe also custom appenders can do that, but I think it will be more complicated
h

holgerbrandl

11/23/2021, 8:50 PM
Thanks @oshai for the pointers. I'll try that.
19 Views