Options
All
  • Public
  • Public/Protected
  • All
Menu

Log which can hold maximum of given size. rotates if exceeded.

export
class

SizeRestrictedLog

Hierarchy

  • SizeRestrictedLog

Index

Constructors

constructor

Properties

Private log

log: LogEntry[] = []

log entries

type

{string[]}

memberof

SizeRestrictedLog

size

size: number

Methods

add

  • add(key: string, entry: string): void

getLogEntries

Private purge

  • purge(): void

remove

  • remove(key: string): void

toJSON

  • toJSON(): string[]

toString

  • toString(): string

Static getInstance

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc