Class: Logger

Logger()

Logging utility

Constructor

new Logger()

Source:

Methods

log(text)

Writes the given text with a timestamp to the log given by Settings#logPath.
If Settings#logToConsole is true, then also logs to console.

Parameters:
Name Type Description
text

The text to be written.

Source:

stop() → {Promise}

Closes the log file; later messages only go to the console, if they would anyway.
Resolves once it is written.

Source:
Returns:
Type
Promise