Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Logger

Logger Class

Hierarchy

  • Logger

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Logger(serviceName?: string, options?: Partial<LoggerOptions>): Logger
  • Creates a new logger with the given service name.

    Parameters

    • serviceName: string = ''
    • options: Partial<LoggerOptions> = {}

    Returns Logger

Properties

options

options: LoggerOptions

serviceName

serviceName: string

time

time: [number, number]

Methods

error

  • error(message: string, timed?: boolean): void

log

  • log(message: string, timed?: boolean): void

Private message

  • message(message: string, color: Chalk, timed: boolean): string
  • Parameters

    • message: string
    • color: Chalk
    • timed: boolean

    Returns string

Private timeString

  • timeString(): string

Generated using TypeDoc