Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConsoleLog

Hierarchy

  • Log
    • ConsoleLog

Implements

Index

Constructors

Protected constructor

Properties

Readonly _enabled

_enabled: PropEnabled

Readonly config

config: LogConfig

Configuration.

Readonly console

console: ConsoleApi

Readonly env

env: Env

Environment configuration for this Log instance.

Readonly envProps

envProps: Props

Readonly fqn

fqn: string

This log's fully qualified name.

Readonly name

name: string

A name for this logger. Will be appended onto parent.fqn if parent exists.

Optional Readonly parent

parent: Log

A parent Log instance.

Methods

Protected _write

alert

child

  • child(options?: Record<string, any>): Log

copy

critical

debug

  • debug(message: LogMessage, ...args: unknown[]): void

emergency

enabled

  • enabled(key?: Key): boolean

error

  • error(message: LogMessage, ...args: unknown[]): void

extend

info

  • info(message: LogMessage, ...args: unknown[]): void

level

log

  • log(message: LogMessage, ...args: unknown[]): void

logLevelEnabled

  • logLevelEnabled(level: LogLevel | string): boolean

prop

  • prop(name: string): string | undefined

Protected runInterceptors

  • runInterceptors(level: any, context: any): void

table

  • table(tabularData: any, properties: string[]): void

trace

  • trace(message: LogMessage, ...args: unknown[]): void

warn

  • warn(message: LogMessage, ...args: unknown[]): void

write

Static create

Generated using TypeDoc