Skip to main content
class Logger
import { Logger } from "https://deno.land/x/melt@0.1.1/mod.ts";

Constructors

new
protected
Logger(
name: string,
configuration: LoggingConfiguration,
contexts: string[],
)

Properties

level: Level
readonly
name

Methods

addContext(...ids: string[]): this

Associate the logger with one or more context IDs.

addOutput(output: LoggerOutput): this

Add an output.

alert(...args: unknown[])
critical(...args: unknown[])
debug(...args: unknown[])
hasAllContexts(...ids: string[]): boolean
hasSomeContexts(...ids: string[]): boolean
info(...args: unknown[])
removeContext(...ids: string[]): this

Disassociate the logger with one or more context IDs.

trace(...args: unknown[])
warn(...args: unknown[])
warning(...args: unknown[])

Static Methods

configure(configurer: (logger: Logger) => unknown)
for(name: string): Logger