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.
Constructor. Can only be called internally since we regulate ButtplugLogger ownership.
Sets maximum log level to log to console
Sets maximum log level for all log messages
Singleton instance for the logger
Returns the stored static instance of the logger, creating one if it doesn't currently exist.
Checks to see if message should be logged, and if so, adds message to the log buffer. May also print message and emit event.
Log new message at Debug level.
Log new message at Error level.
Log new message at Fatal level.
Log new message at Info level.
Log new message at Trace level.
Log new message at Warn level.
Generated using TypeDoc