Mone Hi,
setLoggerProvider is a static method:
[SYNTAX=JS]LightstreamerClient.setLoggerProvider(provider);[/SYNTAX]
HTH
Hi Mone,
Thanks for the info. But the way i'm using the logger is below,
define("lsClient",["LightstreamerClient"],function(LightstreamerClient) {
var lsClient = new LightstreamerClient(); lsClient.connectionDetails.setServerAddress("${PRESSESSIONINFORMATION.pushProtocol}://${PRESSESSIONINFORMATION.pushDomain}:${PRESSESSIONINFORMATION.pushPort}");
lsClient.connectionDetails.setAdapterSet("ASADAPTERSET");
lsClient.connectionDetails.setUser('${PRESSESSIONINFORMATION.sessionId}');
lsClient.connectionDetails.setPassword('${PRESSESSIONINFORMATION.domainInstance.topLevelDomain}');
lsClient.connectionSharing.enableSharing("auctioneerScreen","ATTACH","CREATE");
lsClient.connect();
return lsClient;
});
require(["lsClient","Subscription", "StaticGrid", "SimpleLoggerProvider", "RemoteAppender", "LogMessages"],
function(lsClient,Subscription, StaticGrid, SimpleLoggerProvider, RemoteAppender,LogMessages) {
try
{
var loggerProvider = new SimpleLoggerProvider();
lsClient.setLoggerProvider(loggerProvider);
var myAppender = new RemoteAppender("INFO","*", lsClient);
loggerProvider.addLoggerAppender(myAppender);
var customLogger = loggerProvider.getLogger("*");
customLogger.info("Test Log", null);
.....
.....
.....
lsClient.subscribe(auctionSubscription);
}
catch (err)
{
}
});
How can i use it here?