Skip to main content
Deno 2 is finally 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.63.0/log/handlers.ts";

Constructors

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

Properties

formatter: string | FormatterFunction
level: number
levelName: LevelName

Methods

destroy(): Promise<void>
format(logRecord: LogRecord): string
handle(logRecord: LogRecord): void
log(_msg: string): void
setup(): Promise<void>