Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/log/handlers.ts>BaseHandler

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class BaseHandler
import { BaseHandler } from "https://deno.land/std@0.136.0/log/handlers.ts";

Constructors

new
BaseHandler(levelName: LevelName, options?: HandlerOptions)

Properties

formatter: string | FormatterFunction
level: number
levelName: LevelName

Methods

format(logRecord: LogRecord): string
handle(logRecord: LogRecord): void
log(_msg: string): void