Coroutines and exception logging

I’m fairly new to Kotlin and I’ve noticed that exceptions thrown from within a coroutine that aren’t also caught inside aren’t picked up by my logging framework (Spring Boot + logback) the way they normally are. This means I don’t get the additional logging info like log level, timestamp etc, as well as breaking the expected format in my log parser.

Is there a way to solve this universally without explicitly adding exception handlers to each coroutine I launch?

submitted by /u/Dwight-D
[link] [comments]