Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Logger

Hierarchy

  • Logger

Index

Constructors

Properties

Accessors

Methods

Object literals

Constructors

constructor

Properties

Private color

color: LogColor

Private label

label: string

Private Optional nsp

nsp: Logger

Static Private colors

colors: LogColor[] = Logger.getAvailableColors()

Accessors

Private prefix

  • get prefix(): string

Methods

namespace

  • namespace(label: string): Logger

text

  • text(msg: string): this

Static Private getAvailableColors

  • getAvailableColors(): ("red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "gray")[]
  • Returns ("red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "gray")[]

Object literals

Static Private Options

Options: object

ENV

ENV: string = process.env.NODE_ENV || 'production'

Generated using TypeDoc