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

x/lume/core/logger.ts>default

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class default
import { default } from "https://deno.land/x/lume@v1.19.1/core/logger.ts";

Class to output messages to the console. If quiet mode is enabled, no messages will be output.

Constructors

new
default(options: Options)

Properties

formats: Record<string, (str: string) => string>
quiet: boolean

Methods

log(...messages: unknown[]): void

Outputs a message to the console. You can use html tags in the message for colors. For example: logger.log("<red>Hello World!</red>")

warn(message: string, data?: ErrorData)

Shows a warning message