Not sure. I haven't used a global logger. I always use a local one.
corneil
02/12/2020, 5:55 AM
I may use a method to get a named logger if I need to send logs to specifically name logger that is configure to write to a separate file or datasource.
👍 1
m
Mark
02/12/2020, 7:09 AM
I’m curious how kotlin-logging is able to grab the filename. Any ideas?
c
corneil
02/12/2020, 7:10 AM
which filename?
m
Mark
02/12/2020, 7:11 AM
the tag displayed in the logs is the filename of where you defined
val logger = KotlinLogging.logger {}
c
corneil
02/12/2020, 7:12 AM
I think there is an implicit object named after the file where all the objects defined at file level is placed.