package ch.dissem.yaep.ui.common

import ch.dissem.yaep.domain.Game
import io.github.oshai.kotlinlogging.KotlinLogging
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import kotlin.coroutines.CoroutineContext

private val log = KotlinLogging.logger {}

actual fun CoroutineScope.logGame(game: Game, dispatcher: CoroutineContext) {
    launch(dispatcher) {
        log.debug { "Game: $game" }
    }
}