openHAB 2 logging question (serial binding)

I am separating out logging to different files. This is mostly working, but with serial I am still leaking to openhab.log.

# serial logger = DEBUG, serial, osgi:*
log4j.appender.serial.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%-26.26c{1}] - %m%n

That gets most of it, but still seeing the following in openhab.log:

' to serial port /dev/ttyPort4] [binding.serial.internal.SerialDevice] - Writing 'r
2017-04-05 16:01:30.113 [DEBUG] [binding.serial.internal.SerialDevice] - Writing 'T' to serial port /dev/ttyPort1
2017-04-05 16:01:30.322 [DEBUG] [binding.serial.internal.SerialDevice] - Received message '&' on serial port /dev/ttyPort1
2017-04-05 16:01:30.617 [DEBUG] [binding.serial.internal.SerialDevice] - Received message 'BM�W	qr' on serial port /dev/ttyPort0
' on serial port /dev/ttyPort4] [binding.serial.internal.SerialDevice] - Received message '1012.9
' on serial port /dev/ttyPort5] [binding.serial.internal.SerialDevice] - Received message '7.957
2017-04-05 16:01:31.455 [DEBUG] [binding.serial.internal.SerialDevice] - Received message 'BM�W	qr' on serial port /dev/ttyPort0
2017-04-05 16:01:32.296 [DEBUG] [binding.serial.internal.SerialDevice] - Received message 'BMeU	q�' on serial port /dev/ttyPort0

Adding = false

to section

# File appender - openhab.log

should to the trick.

1 Like

You would not by any chance know how to get logging from mysql and mapdb?

No, sorry, haven’t had any luck with that yet …