Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Logger

Logger Class

Hierarchy

  • Logger

Index

Constructors

  • 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: LoggerOptions
serviceName: string
time: [number, number]

Methods

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

Generated using TypeDoc