Results 1 to 2 of 2

Thread: Logging

  1. #1
    Join Date
    Nov 2007


    Hi guys,

    I'm trying to setup log4j to output debug information for our data adapters to a specific file. Currently I've tried setting a file on the classpath and loading it, but this doesn't seem to work (can't find the file). How should I go about setting this up?

    Additionally, is there any detailed documentation anywhere on how to configure the lightstreamer_log_conf.xml file?



  2. #2
    Join Date
    Jul 2006
    All the documentation available about the use of "lightstreamer_log_conf.xml" is inlined in the sample file.

    If you don't mind overloading "lightstreamer_log_conf.xml" with configuration for your (in-process java) Adapters, this would be the simplest way.
    I don't know if using multiple configuration files for log4j could lead to conflicts (note that the Adapters don't use a separate classloader). Also consider that "lightstreamer_log_conf.xml" is reloaded at short intervals.

    About problems with files, note that in "lightstreamer_log_conf.xml" relative pathnames are based on the "conf" directory because custom appender classes (defined by Lightstreamer) are used.
    Standard log4j appenders, on the other hand, use the process launch directory to resolve relative pathnames.



Similar Threads

  1. How to turn on LS client side logging?
    By LS_Developer in forum Client SDKs
    Replies: 1
    Last Post: March 20th, 2012, 09:51 AM
  2. Logging to NT eventlog
    By LS_Developer in forum General
    Replies: 3
    Last Post: February 17th, 2012, 09:56 AM
  3. Logging info messages
    By mrkautocom in forum General
    Replies: 3
    Last Post: December 1st, 2010, 12:00 PM
  4. How to disable server logging?
    By ITS in forum General
    Replies: 1
    Last Post: April 14th, 2009, 10:47 AM


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 01:43 AM.