Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/std/log/logger.ts>Logger

A modern runtime for JavaScript and TypeScript.
Go to Latest
class Logger
import { Logger } from "https://deno.land/x/deno@v0.22.0/std/log/logger.ts";

Constructors

new
Logger(levelName: string, handlers?: BaseHandler[])

Properties

handlers: any[]
level: number
levelName: string

Methods

_log(
level: number,
msg: string,
...args: unknown[],
): void
critical(msg: string, ...args: unknown[]): void
debug(msg: string, ...args: unknown[]): void
error(msg: string, ...args: unknown[]): void
info(msg: string, ...args: unknown[]): void
warning(msg: string, ...args: unknown[]): void