Class
caplin.streamlink

LogListener

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);

Constructor Summary

Attributes Name and Description
caplin.streamlink.LogListener()

Method Summary

Attributes Name and Description
void onLog(caplin.streamlink.LogInfo logInfo)

Called when a StreamLink log message is to be logged.

Constructor Detail

caplin.streamlink.LogListener()

Method Detail

void onLog(caplin.streamlink.LogInfo logInfo)

Called when a StreamLink log message is to be logged.

Parameters
caplin.streamlink.LogInfo logInfo The LogInfo object, containing the log message text and log level.