class AbstractLogger
implements Logger
Abstract
import { AbstractLogger } from "https://dotland.deno.dev/x/drash@v3.0.0-beta.2/src/standard/log/AbstractLogger.ts";
Base logger for logger classes.
Constructors
new
AbstractLogger(name: string, level: LogLevel)Methods
protected
getFormattedMessage(level: string,
message: unknown,
replacements: unknown[],
protected
getMessagePrefix(messageLevel: string): stringGet the prefix to write before the log message.
protected
abstract
write(...messages: unknown[]): unknowndebug(message: unknown, ...replacements: unknown[]): unknown
error(message: unknown, ...replacements: unknown[]): unknown
fatal(message: unknown, ...replacements: unknown[]): unknown
info(message: unknown, ...replacements: unknown[]): unknown
trace(message: unknown, ...replacements: unknown[]): unknown
warn(message: unknown, ...replacements: unknown[]): unknown