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

Jakub Gwóźdź

09/02/2022, 6:58 AM
Hi. I’m using KotlinLogging over log4j2 with extensive use of MDC and I wonder if there’s any solution or best practice to verify log calls in unit tests? Like, adding my own Appender or something?
o

oshai

09/02/2022, 9:20 AM
you can take a look on kotlin-logging unit tests. But normally, I don't consider testing your logging a best practice as this is usually a side effect of what you're actually doing (like testing your tests)
27 Views