Logger
interfaceYour 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.
Import
import { Logger } from '@modular/sdk';Members6
- debug
(message: string, ...args: readonly unknown[]) => void- error
(message: string, ...args: readonly unknown[]) => void- info
(message: string, ...args: readonly unknown[]) => void- show
() => voidBrings 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