asKmpLogLoggerOrThrow

Helper for converting Ktor's Logger back to KmpLogKtorLogger to retrieve its KmpLogKtorLogger.delegate. Only use if you are absolutely certain that the Logger in some ktor API is actually a KmpLogKtorLogger, such as with ktor server's Application.log extension function whereby the ApplicationEngineEnvironmentBuilder.log was set up with KmpLogKtorLogger.

Throws

ClassCastException

If Logger is not a KmpLogKtorLogger.