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

x/lume/core.ts>Logger

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class Logger
Re-export
import { Logger } from "https://deno.land/x/lume@v1.16.1/core.ts";

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

Constructors

new
Logger(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