Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PrefixLogger

PrefixLogger is an implementation of ILogger that prefixes all of its messages with the given tag. This is primarily used for logging from an entity (i.e. logging from an enrolment session.)

export
class

PrefixLogger

implements

{ILogger}

Hierarchy

  • PrefixLogger

Implements

Index

Constructors

Methods

Constructors

constructor

  • Creates an instance of PrefixLogger.

    memberof

    PrefixLogger

    Parameters

    • prefix: string

      The prefix to use in messages.

    • logger: ILogger

      The logger to use as a backend.

    Returns PrefixLogger

Methods

debug

  • debug(msg: string, ...meta: any[]): void
  • Parameters

    • msg: string
    • Rest ...meta: any[]

    Returns void

error

  • error(msg: string, ...meta: any[]): void
  • Parameters

    • msg: string
    • Rest ...meta: any[]

    Returns void

info

  • info(msg: string, ...meta: any[]): void
  • Parameters

    • msg: string
    • Rest ...meta: any[]

    Returns void

verbose

  • verbose(msg: string, ...meta: any[]): void
  • Parameters

    • msg: string
    • Rest ...meta: any[]

    Returns void

warn

  • warn(msg: string, ...meta: any[]): void
  • Parameters

    • msg: string
    • Rest ...meta: any[]

    Returns void

Generated using TypeDoc