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

x/fileserver/src/Logger.ts>Logger

A file-server command.
Latest
class Logger
import { Logger } from "https://deno.land/x/fileserver@1.1.19/src/Logger.ts";

A logging utility.

Constructors

new
Logger(unnamed 0: { colors?: boolean; debug?: boolean; output?: boolean; })

Initiate a new logger.

Properties

readonly
_debug: boolean
readonly
_output: boolean
readonly
colors: boolean

Methods

private
_(
type: string,
color: (s: string) => string,
message: any,
...args: any[],
)

Output a message to the console.

debug(message: any, ...args: any)
error(message: any, ...args: any)
info(message: any, ...args: any)
warn(message: any, ...args: any)