Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MemoryLog

Logs to an in-memory array - not the console

Hierarchy

Implements

Index

Constructors

constructor

Properties

debug

debug: (...args: any[]) => void

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

error

error: (...args: any[]) => void

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

info

info: (...args: any[]) => void

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

lines

lines: ILogLine[] = []

Protected sources

sources: Array<LogSource | string>

trace

trace: (...args: any[]) => void

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

warn

warn: (...args: any[]) => void

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

Methods

clear

  • clear(): void
  • Returns void

setArray

  • Parameters

    Returns void

setSources

  • setSources(...sources: Array<LogSource | string>): void

setup

  • setup(): void
  • Re-binds the Log methods. Called automatically when the winston instance is set.

    Returns void

Generated using TypeDoc