Skip to main content
Module

x/knight/mod.ts>TextFormatter

MVC web server framework for Deno 🦕 built on Oak
Latest
class TextFormatter
extends Formatter
import { TextFormatter } from "https://deno.land/x/knight@2.3.0/mod.ts";

Default console logging formatter.

Constructors

new
TextFormatter(options?: Partial<TextFormatterOptions>)

Properties

options: TextFormatterOptions

Methods

private
paramColorFormatter(paramColors: ParamColors, colorsEnabled: boolean): ColorFunction

Correctly color and format a log message parameter.

format(unnamed 0: LoggingFormatterData): string

Format a message as human readable text of the form [TIMESTAMP | LEVEL]: MESSAGE.