Interface for receiving log messages from the StreamLink application.
If you wish to capture StreamLink's log messages (for example, to write them to your own log window), implement this interface, create an instance of it, and attach it to an instance of caplin.streamlink.Logger.
The following code example shows a simple anonymous implementation of LogListener
streamLink.getLogger().addListener({
onLog: function(logInfo) {
console.log(logInfo.getMessage());
}
}, caplin.streamlink.LogLevel.FINEST);
Attributes | Name and Description |
---|---|
|
caplin.streamlink.LogListener()
|
Attributes | Name and Description |
---|---|
|
void
onLog(caplin.streamlink.LogInfo logInfo)
Called when a StreamLink log message is to be logged. |
►
caplin.streamlink.LogListener()
►
void
onLog(caplin.streamlink.LogInfo logInfo)
Called when a StreamLink log message is to be logged.
caplin.streamlink.LogInfo | logInfo | The LogInfo object, containing the log message text and log level. |