-
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?
-
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?
-
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>
-
My bad. My viewing has some filtering turned on. Very sorry for that.