-
July 7th, 2020, 01:07 PM
#1
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.
-
July 7th, 2020, 02:32 PM
#2
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
-
By doraintech in forum Client SDKs
Replies: 12
Last Post: May 26th, 2014, 09:59 AM
-
By tony99nyr in forum Adapter SDKs
Replies: 3
Last Post: April 7th, 2014, 09:29 AM
-
By sarbao in forum Adapter SDKs
Replies: 2
Last Post: March 3rd, 2014, 07:39 AM
-
By milad.j in forum Adapter SDKs
Replies: 1
Last Post: November 4th, 2013, 09:23 AM
-
By brianjohnson in forum Adapter SDKs
Replies: 2
Last Post: April 5th, 2010, 12:02 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 06:48 AM.
Bookmarks