-
October 20th, 2008, 11:31 AM
#1
Logging
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
-
October 21st, 2008, 10:25 AM
#2
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
-
By LS_Developer in forum Client SDKs
Replies: 1
Last Post: March 20th, 2012, 09:51 AM
-
By LS_Developer in forum General
Replies: 3
Last Post: February 17th, 2012, 09:56 AM
-
By mrkautocom in forum General
Replies: 3
Last Post: December 1st, 2010, 12:00 PM
-
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
-
Forum Rules
All times are GMT +1. The time now is 01:05 PM.
Bookmarks