Need help with logger configuration


I added to my /var/lib/openhab/etc/log4j2.xml

<!-- Zwave custom file appender -->
		<RollingRandomAccessFile fileName="${sys:openhab.logdir}/zwave.log" filePattern="${sys:openhab.logdir}/zwave.log.%i" name="ZWAVE">
			<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5.5p] [%-36.36c] - %m%n"/>
				<SizeBasedTriggeringPolicy size="16 MB"/>

and added

org.openhab.binding.zwave                          │ DEBUG

to the karaf configuration…

But it still gets logged into the normal openhab.log file…What is wrong?

There is a working example in the docs:

Yes I copied the configuration from there…But the zwave log stays empty

No, you are missing the Loggers section …

Thank zou :slight_smile: