Adds a LogListener to this Logger. The listener is called whenever a StreamLink message with the defined LogLevel is to be logged.
The object that implements the LogListener Interface.
The LogLevel of log messages for which the listener
is to be called. Only messages at or above this log level will invoke this listener
.
Sends a log message to all LogListener's that have been registered for this log level or above.
The log()
method allows inline replacement of arguments. The arguments to replace these placeholders are then passed in at the end.
Example : logger.log(LogLevel.Critical, "Error {0} has occurred with code {1}.", errorString, errorCode);
The logging level that will be associated with the logged message.
The message to log.
Rest
...args: any[]Arguments included in the log message.
Removes a LogListener that you previously added (see addListener
).
The LogListener you added.
Generated using TypeDoc
Name
Logger