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)
peekandpoke
10/09/2018, 9:49 PM
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
samir
10/10/2018, 5:58 AM
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