Class: Logger

Logger


new Logger()

Singleton logging class to provide custom logger for library.

Define the new logger at the top of the program, before instantiating any new client or server classes.

Source:
Returns:

instance of Logger

Methods


getInstance()

Source:
Returns:

instance of Logger


getLogger()

Source:
Returns:

Logger.log


setLogger(newLogger)

Overwrite Logger.log, default console, which is used for messages within the library

Parameters:
Name Type Description
newLogger object

Object to overwrite console logging

Source: