Results 1 to 10 of 24

Hybrid View

  1. #1
    Power Member
    Join Date
    Sep 2013
    Location
    Coimbatore
    Posts
    121
    Can you please help me on this how to add log in my adapter.
    @Override
    public void subscribe(String itemName) throws SubscriptionException, FailureException {
    logger.debug("Subscribing to " + itemName);
    }
    Is this okay or I add some other things. But when I check in my log file I couldn't find the Subscribing to ​in my log file.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    The log you perform in your code should be entirely managed by your code, without Lightstreamer involvement
    (although the java remote SDK also provides a very simple logging interface).
    For instance if your "logger" object is obtained with slf4j, you should provide a suitable slf4j implementation and configuration.

    However, Giuseppe's advise was to log the startup phase of the process, when the process tries to establish a connection with Lightstreamer Server, since there is no evidence of such connection.
    As log as the remote adapter process fails to connect, it won't receive any invocation of "subscribe", hence it is correct that you can't see this log.

 

 

Similar Threads

  1. Replies: 12
    Last Post: May 26th, 2014, 09:59 AM
  2. Error handling for: [Unexpected update for item]
    By tony99nyr in forum Adapter SDKs
    Replies: 3
    Last Post: April 7th, 2014, 09:29 AM
  3. Preventing user access after notifyUser call
    By sarbao in forum Adapter SDKs
    Replies: 2
    Last Post: March 3rd, 2014, 07:39 AM
  4. NotifyUser Header
    By milad.j in forum Adapter SDKs
    Replies: 1
    Last Post: November 4th, 2013, 09:23 AM
  5. Delay in notifyUser() causes erratic create_session behavior
    By brianjohnson in forum Adapter SDKs
    Replies: 2
    Last Post: April 5th, 2010, 12:02 PM

Tags for this Thread

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 06:48 AM.