Hi,
You should also include the classes ConsoleAppender and LogMessages.
For example, if you use AMD, the complete code is:
require(["LightstreamerClient", "SimpleLoggerProvider", "ConsoleAppender", "LogMessages" /* other dependencies */],
function(LightstreamerClient, SimpleLoggerProvider,ConsoleAppender,LogMessages) {
/* set up logger */
var log = new SimpleLoggerProvider();
log.addLoggerAppender(new ConsoleAppender("DEBUG", "*"));
LightstreamerClient.setLoggerProvider(log);
/* create the client and connect */
});
Additional info about the use of the client are in the
Web client guide.