This page last changed on May 23, 2013 by aktur.

Hi,

I've noticed that adding in-memory sensor produces many entries in dev.log file. About 2 entries per second per sensor. This means that log files fill up very fast and other information is wiped up. Can these entries be suppressed?

Here is example of these entries:

2013-05-23 11:45:15,140 TRACE [Polling Sensor Thread ID = 2621626, Name ='V_SECONDS']: Processed ----, received ----
2013-05-23 11:45:15,161 TRACE [Polling Sensor Thread ID = 2621612, Name ='V_DVD STATUS']: Processed OFF, received OFF
2013-05-23 11:45:15,269 TRACE [Polling Sensor Thread ID = 2621610, Name ='V_FM STATUS']: Processed OFF, received OFF
2013-05-23 11:45:15,319 TRACE [Polling Sensor Thread ID = 2621611, Name ='V_ATV STATUS']: Processed OFF, received OFF
2013-05-23 11:45:15,334 TRACE [Polling Sensor Thread ID = 2621608, Name ='V_TV STATUS']: Processed OFF, received OFF
2013-05-23 11:45:15,369 TRACE [Polling Sensor Thread ID = 2621589, Name ='VTEMP STATUS']: Processed 17.3 ? / 63.1 ?, received 17.3 ? / 63.1 ?
2013-05-23 11:45:15,443 TRACE [Polling Sensor Thread ID = 2621609, Name ='V_SAT STATUS']: Processed OFF, received OFF
2013-05-23 11:45:15,628 TRACE [Polling Sensor Thread ID = 2621591, Name ='V1 STATUS']: Processed SAT, received SAT
2013-05-23 11:45:15,642 TRACE [Polling Sensor Thread ID = 2621626, Name ='V_SECONDS']: Processed ----, received ----
2013-05-23 11:45:15,663 TRACE [Polling Sensor Thread ID = 2621612, Name ='V_DVD STATUS']: Processed OFF, received OFF
2013-05-23 11:45:15,771 TRACE [Polling Sensor Thread ID = 2621610, Name ='V_FM STATUS']: Processed OFF, received OFF
2013-05-23 11:45:15,821 TRACE [Polling Sensor Thread ID = 2621611, Name ='V_ATV STATUS']: Processed OFF, received OFF
2013-05-23 11:45:15,836 TRACE [Polling Sensor Thread ID = 2621608, Name ='V_TV STATUS']: Processed OFF, received OFF
2013-05-23 11:45:15,871 TRACE [Polling Sensor Thread ID = 2621589, Name ='VTEMP STATUS']: Processed 17.3 ? / 63.1 ?, received 17.3 ? / 63.1 ?
2013-05-23 11:45:15,945 TRACE [Polling Sensor Thread ID = 2621609, Name ='V_SAT STATUS']: Processed OFF, received OFF
2013-05-23 11:45:16,130 TRACE [Polling Sensor Thread ID = 2621591, Name ='V1 STATUS']: Processed SAT, received SAT

In log4j.properies, add a threshold and set it to DEBUG:

log4j.appender.file.Threshold=DEBUG

In the dev.log config section:

log4j.appender.file = org.apache.log4j.RollingFileAppender
log4j.appender.file.File = ../logs/dev/dev.log
log4j.appender.file.MaxFileSize = 500KB
log4j.appender.file.MaxBackupIndex = 10
log4j.appender.file.layout = org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern = %d %p [%t]: %m%n

Posted by juha at May 23, 2013 12:18

It works till in-memory keeps its bashing low. However, sometimes it starts witch strange warnings:

2013-05-26 17:44:24,157 WARN [Polling Sensor Thread ID = 2621610, Name ='V_FM STATUS']: Unknown virtual protocol property '<property name = "name" value = "V1 ON"/>'.
2013-05-26 17:44:25,644 WARN [Polling Sensor Thread ID = 2621610, Name ='V_FM STATUS']: Unknown virtual protocol property '<property name = "name" value = "V1 ON"/>'.
2013-05-26 17:44:25,646 WARN [Polling Sensor Thread ID = 2621610, Name ='V_FM STATUS']: Unknown virtual protocol property '<property name = "name" value = "V_ATV OFF"/>'.
2013-05-26 17:44:25,648 WARN [Polling Sensor Thread ID = 2621610, Name ='V_FM STATUS']: Unknown virtual protocol property '<property name = "name" value = "V_DVD OFF"/>'.
2013-05-26 17:44:25,650 WARN [Polling Sensor Thread ID = 2621610, Name ='V_FM STATUS']: Unknown virtual protocol property '<property name = "name" value = "V_TV OFF"/>'.

By the way, where I can put in the source these properties that they are preserved during the build?

Posted by aktur at May 26, 2013 16:55

Thanks, the warning can be ignored, will fix it later.

I don't understand your second question?

Posted by juha at May 26, 2013 17:15

oh, you mean in config/log4j.properties? that file is not overwritten

Posted by juha at May 26, 2013 17:16
Document generated by Confluence on Jun 05, 2016 09:30