Results 1 to 2 of 2
  1. #1

    File Logger - LS client and server subscriptions


    We want to know about the LS client and server logging options, we prefer to log all the subscriptions error,debug,info level to separate files.

    We need to know how effective we can log the client subscriptions , Adapter smartUpdates, so if any defects occur we can triage it effectively. Pls do the needful.


  2. #2
    Join Date
    Jul 2006
    Hi Rajesh,

    For the Server log, we lean on the third-party "logback" library.
    The factory configuration file, lightstreamer_log_conf.xml, also contains the available documentation of the log categories (i.e. loggers) in which the produced log is divided. We suggest opening it with a text editor.
    For instance, Data Adapter updates are covered by "LightstreamerLogger.subscriptions.upd" at DEBUG level, whereas subscriptions towards the Data Adapter are covered by "LightstreamerLogger.subscriptions" at DEBUG level.
    The single subscriptions by each client session are not logged directly, but they are notified to the Metadada Adapter through the notifyNewTables and notifyTablesClose callbacks.

    You can have different loggers print on different files by leveraging logback's "appenders".

    On the client side, the logging technique may differ among the SDKs, but in general it is based on a custom interface.
    See the javascript case, for instance, where the entry point is the setLoggerProvider method.
    In this case, the library log is divided into "categories" for each of which the application should provide a "logger" object which will handle the log. These loggers are provided through a custom object of the "LoggerProvider" class.
    If the application sticks to the basic implementation (the SimpleLoggerProvider), it can instead define one or more "appenders" and, for each one, specify the categories it should handle.
    However, the client log is only meant as a debugging tool. The report of the application activity, with regard to subscriptions and received data, should be logged by the application.



Similar Threads

  1. Replies: 9
    Last Post: May 6th, 2015, 02:02 PM
  2. UD3 updates to multiple subscriptions
    By Nigel1 in forum Adapter SDKs
    Replies: 2
    Last Post: November 29th, 2012, 03:47 PM
  3. Adding or Removing Subscriptions
    By subuta in forum Client SDKs
    Replies: 4
    Last Post: December 27th, 2011, 03:03 PM
  4. .NET Client Multiple Subscriptions
    By wwatts in forum Client SDKs
    Replies: 4
    Last Post: February 16th, 2010, 08:58 AM
  5. NamingContextFactory and Logger question
    By gerald.logor in forum Adapter SDKs
    Replies: 2
    Last Post: September 5th, 2007, 02:27 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
All times are GMT +1. The time now is 07:50 PM.