Skip to main content
The Deno 2 Release Candidate is here
Learn more
type alias Logger
import { type Logger } from "https://deno.land/x/macromania_assets@v0.2.0/deps.ts";

A logger, as created by the createLogger function.

All internal state is encapsulated, the logger is simply a collection of macros and functions for logging and for configuring the logger.

Uppercase members are macros, lowercase members are regular functions.

definition: { ConfigMacro: (props: LoggerOptions) => Expression; Log: (props: LogProps) => Expression; LogGroup: (props: { children?: Expressions; }) => Expression; Debug: (props: { children?: Expressions; }) => Expression; Trace: (props: { children?: Expressions; }) => Expression; Info: (props: { children?: Expressions; }) => Expression; Warn: (props: { children?: Expressions; }) => Expression; Error: (props: { children?: Expressions; }) => Expression; At: () => Expression; log: (
ctx: Context,
level: LogLevel,
...msg: any[],
) => void; logGroup: (ctx: Context, thunk: () => void) => void; logStartGroup: (ctx: Context) => void; logEndGroup: (ctx: Context) => void; debug: (ctx: Context, ...msg: any[]) => void; trace: (ctx: Context, ...msg: any[]) => void; info: (ctx: Context, ...msg: any[]) => void; warn: (ctx: Context, ...msg: any[]) => void; error: (ctx: Context, ...msg: any[]) => void; at: (ctx: Context) => void; }