Skip to content
Kunkun

Log

Docs: https://docs.api.kunkun.sh/interfaces/ui.ILogger

This log API not only logs to browser console, but also logs to a log file stored on disk. Could be useful for debugging. If there is any serious error, use this log API and display a toast/notification message to the user.

import { log } from "@kksh/api/ui/worker"
// or
import { log } from "@kksh/api/ui/iframe"
log.debug("debug message")
log.error("error message")
log.info("info message")
log.trace("trace message")
log.warn("warn message")