Hi there! Simple question: How do I get an instanc...
# ktor
p
Hi there! Simple question: How do I get an instance of a Logger? (When I do not have access to the "application.environment" or when I do not want to use the root logger)
ok, i am doing this here now:
Copy code
inline fun <reified T> T.logger(): Logger = LoggerFactory.getLogger(T::class.java)
good, bad, ugly? What do you think?
s
I had the same question and I would be interested to see an answer about what would be the best way to go about this