RichP1
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 log4j.properties 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?
Thanks,
Richard
Dario Crivelli
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.