Results 1 to 10 of 10

Threaded View

  1. #9
    Quote Originally Posted by Mone View Post
    Sorry,

    That's unexpected.
    We have the RemoteLogger configured @ ERROR level on our own online demos and we've never experienced such issue.
    Can you link me an example page showing the issue or help me write a page that reproduces the issue?

    This is the code from our own demo
    Hi Mone,

    Yes, that's true it doesn't go to a loop but i cannot reproduce any RemoteAppender at error level. It doesn't send log while using the same place where i have info log. Just change the level to ERROR. it works and go on a loop when i use the INFO. below the code i'm using.

    require(["lsClient","LightstreamerClient", "Subscription", "StaticGrid", "SimpleLoggerProvider", "ConsoleAppender", "LogMessages"],
    function(lsClient,LightstreamerClient, Subscription, StaticGrid, SimpleLoggerProvider, ConsoleAppender,LogMessages) {

    try
    {
    var loggerProvider = new SimpleLoggerProvider();
    LightstreamerClient.setLoggerProvider(loggerProvid er);
    var myAppender = new ConsoleAppender("INFO","*", lsClient);
    loggerProvider.addLoggerAppender(myAppender);
    var customLogger = loggerProvider.getLogger("*");
    var auctionData = new StaticGrid("astable",true);
    auctionData.setHtmlInterpretationEnabled(true);

    var auctionSubscription = new Subscription("MERGE",auctionData.extractItemList() ,schema);
    auctionSubscription.setDataAdapter("ASADAPTER");
    auctionSubscription.setRequestedSnapshot("yes");
    auctionSubscription.addListener(auctionData);

    auctionSubscription.addListener({
    onSubscription:function() {
    try
    {
    <c:choose>
    <c:when test="${PRESSESSIONINFORMATION.domainInstance.doma inId == 16}">
    customLogger.info("Successfully Subcribed to LightStreamer Server" + "#" + serverTimeStamp + "#" + clientTimeStamp + "#" + auctionserverLatency + "#" + timeServerLatency, null);
    //log.info("Successfully Subcribed to LightStreamer Server" + "#" + serverTimeStamp + "#" + clientTimeStamp + "#" + auctionserverLatency + "#" + timeServerLatency);
    </c:when>
    <c: otherwise>
    customLogger.info("Successfully Subcribed to LightStreamer Server", null);
    //log.info("Successfully Subcribed to LightStreamer Server");
    </c: otherwise>
    </c:choose>

    }catch (err)
    {
    errorHandler.logException("onSubscription(...) getting values failed.", err, null);
    }
    });
    Regards
    Shabbir
    Last edited by shabbirh; October 25th, 2013 at 11:08 AM.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 09:53 PM.