Class ButtplugLogger

Simple, global logging utility for the Buttplug client and server. Keeps an internal static reference to an instance of itself (singleton pattern, basically), and allows message logging throughout the module.

Hierarchy

  • EventEmitter
    • ButtplugLogger

Constructors

Properties

maximumConsoleLogLevel: ButtplugLogLevel = ButtplugLogLevel.Off

Sets maximum log level to log to console

maximumEventLogLevel: ButtplugLogLevel = ButtplugLogLevel.Off

Sets maximum log level for all log messages

sLogger: undefined | ButtplugLogger = undefined

Singleton instance for the logger

Accessors

Methods

  • Checks to see if message should be logged, and if so, adds message to the log buffer. May also print message and emit event.

    Parameters

    Returns void

  • Log new message at Debug level.

    Parameters

    • msg: string

    Returns void

  • Log new message at Error level.

    Parameters

    • msg: string

    Returns void

  • Log new message at Trace level.

    Parameters

    • msg: string

    Returns void

Generated using TypeDoc