Skip to main content

Logger

interface

Your mod's log channel in the host. Use it instead of `console`, which is forbidden at module top level. Output is tagged with your mod id and readable from the host's log viewer.

interface Logger

Import

import { Logger } from '@modular/sdk/view';

Members6

debug
(message: string, ...args: readonly unknown[]) => void
error
(message: string, ...args: readonly unknown[]) => void
info
(message: string, ...args: readonly unknown[]) => void
show
() => void

Brings this channel to the front of the host's log viewer.

trace
(message: string, ...args: readonly unknown[]) => void
warn
(message: string, ...args: readonly unknown[]) => void

Notes

category
Context