Hi. I’m using KotlinLogging over log4j2 with exten...
# kotlin-logging
j
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
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)