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

x/deno/std/log/handlers.ts>BaseHandler

A modern runtime for JavaScript and TypeScript.
Go to Latest
class BaseHandler
import { BaseHandler } from "https://deno.land/x/deno@v0.28.0/std/log/handlers.ts";

Constructors

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

Properties

formatter: string | FormatterFunction
level: number
levelName: string

Methods

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