-
-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Description
I think it would be nice if we could set our own way to get a org.slf4j.Logger
from the name, for example this could allow returning a fallback logger, when no logging implementation is detected, in this example I could use this method.
I assume this could be implemented by having a mutable property in KotlingLogging
, which would get used by KLoggerFactory.logger
.
This would also avoid checking the kotlin-logging-to-jul
property for every logger, by checking once and using the right factory.
Caveats
This is modifiable by anyone, it could get overwritten by accident by an end user of a library that did set that property
Workarounds
Use your own function to get a KLogger
Metadata
Metadata
Assignees
Labels
No labels