Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Nov 2010
    Location
    Odense
    Posts
    3

    Logging info messages

    Hi

    We have some problems configuring logging in LightStreamer. In our adapter we have both INFO and WARN messages. Only WARN messages appear in the log file. We have tried removing all categories but the ROOT but to no avail. Can it be that the com.lightstreamer.log4j.RelativeFileAppenders$Dail yRollingFileAppender eats all messages below WARN?

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    973
    Are you using the same configuration file used for the Server in order to configure your adapter's loggers?
    If you stick to the factory configuration, you should see messages at INFO level for the Server part of the log; can you confirm that?
    This should demonstrate that there are no filters for INFO messages, other than the "priority" settings that can be specified at "category" (i.e. "logger") level.
    Did you specify a "priority" explicitly for your own log categories?

  3. #3
    Member
    Join Date
    Nov 2010
    Location
    Odense
    Posts
    3
    I have only one configuration file for the logging system. I have commented all categories out, but the root one.

    Code:
    <appender name="LSDailyRolling" class="com.lightstreamer.log4j.RelativeFileAppenders$DailyRollingFileAppender">
    		<param name="File" value="../logs/server.log" />
    		<!-- <param name="Threshold" value="INFO" /> -->
    		<param name="DatePattern" value="'.'yyyy-MM-dd" />
    		<layout class="org.apache.log4j.PatternLayout">
    			<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
    		</layout>
    	</appender>
    ...
    <root>
       	  	<level value="INFO"></level>
          	<appender-ref ref="LSDailyRolling"/>
          	<appender-ref ref="LSConsole"/>
       	</root>

  4. #4
    Member
    Join Date
    Nov 2010
    Location
    Odense
    Posts
    3
    My bad. My viewing has some filtering turned on. Very sorry for that.

 

 

Similar Threads

  1. How to turn on LS client side logging?
    By LS_Developer in forum Client APIs
    Replies: 1
    Last Post: March 20th, 2012, 08:51 AM
  2. Logging to NT eventlog
    By LS_Developer in forum General
    Replies: 3
    Last Post: February 17th, 2012, 08:56 AM
  3. LS not sending all messages to client
    By mnenchev in forum General
    Replies: 3
    Last Post: April 20th, 2010, 09:10 AM
  4. How to disable server logging?
    By ITS in forum General
    Replies: 1
    Last Post: April 14th, 2009, 09:47 AM
  5. Logging
    By RichP1 in forum General
    Replies: 1
    Last Post: October 21st, 2008, 09:25 AM

Bookmarks

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 12:56 PM.