Skip to main content
Module

x/papyrus/configuration.ts>Configuration

Lightweight, modular JSON logger for `Deno` with support for external formatters and transports.
Latest
class Configuration
import { Configuration } from "https://deno.land/x/papyrus@v1.0.0/configuration.ts";

Constructors

new
Configuration(options: PapyrusOptions, parent?: Papyrus)

Properties

private
readonly
internals: Internals
private
readonly
isChild: boolean
readonly
bindings: KeyValuePair
readonly
enabled: boolean
readonly
formatter: Formatter | undefined
readonly
level: Level
readonly
mergeBindings: boolean
readonly
mergePayload: boolean
readonly
name: string | undefined
readonly
time: boolean
readonly
transport: TransportOptions[]
readonly
useLabels: boolean

Methods

Return computed internal options

private
validateLevel(level?: Level | keyof Level): Level

Returns a valid level as number

private
validateName(name: string | undefined): string | undefined

Throws an error if the name is not unique, or if a child logger doesn't have a name

Static Properties

private
readonly
names: string[]