Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Logs

Hierarchy

  • Logs

Index

Properties

Methods

Properties

Static id

id: number = 0

Static subscribers

subscribers: any[] = []

Methods

Static Private _dispatch

  • _dispatch(log: Log): void

Static add

  • add(title: any, data?: any): void
  • log something

    Parameters

    • title: any
    • Default value data: any = ""

    Returns void

Static listen

  • listen to logs.

    Parameters

    • cb: (log: Log) => void

      that is called for each future log() with the Log object

        • (log: Log): void
        • Parameters

          Returns void

    Returns Unsubscribe

    a function that can be called to unsubscribe the listener

Generated using TypeDoc