[Solved] Help on logging for network IO

Dear all,

I am trying to set up a logging which would help me with some network problems I might have in my configuration.

I have adited org.ops4j.pax.logging.cfg as follows:

Custom Loggers


log4j2.logger.io.net.http.name = org.openhab.io.net.http
log4j2.logger.io.net.http.level = TRACE
log4j2.logger.io.net.http.additivity = false
log4j2.logger.io.net.http.appenderRefs = io.net.http
log4j2.logger.io.net.http.appenderRef.io.net.http.ref = io.net.http

Custom Appenders


log4j2.appender.io.net.http.name = io.net.http
log4j2.appender.io.net.http.type = RollingRandomAccessFile
log4j2.appender.io.net.http.fileName = /var/log/openhab2/io.net.http.log
log4j2.appender.io.net.http.filePattern = /var/log/openhab2/io.net.http.log.%i
log4j2.appender.io.net.http.immediateFlush = true
log4j2.appender.io.net.http.append = true
log4j2.appender.io.net.http.layout.type = PatternLayout
log4j2.appender.io.net.http.layout.pattern = %d{dd-MMM-yyyy HH:mm:ss.SSS} [%-5.5p] [%-50.50c] - %m%n
log4j2.appender.io.net.http.policies.type = Policies
log4j2.appender.io.net.http.policies.size.type = SizeBasedTriggeringPolicy
log4j2.appender.io.net.http.policies.size.size = 10MB
log4j2.appender.io.net.http.strategy.type = DefaultRolloverStrategy
log4j2.appender.io.net.http.strategy.max = 10

If I activate this logging config, the OH2 logging stops completely. :frowning:

I tried to find some hints using the logging tag, but did without success.
Would you have any hints?

Thanks and regards,

Expanding this could give more targetted advice.


many thanks for your help.

The root cause of my problem has been a freeze on one of my network devices.
Reboot has solved the problem.