Log "loading model" [el.core.internal.ModelRepositoryImpl] is gone?


I have noticed that my log is not giving me any info when a file like .things or .rules has been changed and saved.
I recall this used to be the case. There used to be an entry in the openhab.log like “loading model”. And if there was an error in the syntax, this would also be mentionned.
So currently I have no feedback from OH on the loading of my files.
From other posts on the forum I can tell that such info is logged under [el .core .internal .ModelRepositoryImpl].

Even if I make a delibarate syntax error in one of my files, nothing is logged. Other things are being logged though.
What can I do to make this appear again?
Based on the page about logging and other posts, I have been playing with various log levels, but no success so far. I can tell the changed log settings take effect, but the “model loading” (and more importantly the error) is not being logged.
Currently I have these settings:

openhab> log:get
Logger                                             │ Level
ROOT                                               │ WARN
javax.jmdns                                        │ INFO
javax.mail                                         │ ERROR
openhab.event                                      │ DEBUG
openhab.event.AddonEvent                           │ INFO
openhab.event.InboxUpdatedEvent                    │ ERROR
openhab.event.ItemAddedEvent                       │ INFO
openhab.event.ItemChannelLinkAddedEvent            │ ERROR
openhab.event.ItemChannelLinkRemovedEvent          │ ERROR
openhab.event.ItemRemovedEvent                     │ ERROR
openhab.event.ItemStateEvent                       │ ERROR
openhab.event.RuleAddedEvent                       │ DEBUG
openhab.event.RuleRemovedEvent                     │ DEBUG
openhab.event.RuleStatusInfoEvent                  │ DEBUG
openhab.event.StartlevelEvent                      │ DEBUG
openhab.event.ThingAddedEvent                      │ DEBUG
openhab.event.ThingRemovedEvent                    │ DEBUG
openhab.event.ThingStatusInfoEvent                 │ DEBUG
openhab.event.ThingUpdatedEvent                    │ DEBUG
org.apache.cxf.jaxrs.sse.SseEventSinkImpl          │ ERROR
org.apache.karaf.jaas.modules.audit                │ INFO
org.apache.karaf.kar.internal.KarServiceImpl       │ ERROR
org.apache.karaf.shell.ssh.SshUtils                │ ERROR
org.apache.karaf.shell.support                     │ OFF
org.apache.sshd                                    │ WARN
org.eclipse.lsp4j                                  │ OFF
org.jupnp                                          │ ERROR
org.openhab                                        │ INFO
org.openhab.binding.caddx                          │ INFO
org.openhab.binding.somfytahoma                    │ DEBUG
org.ops4j.pax.url.mvn.internal.AetherBasedResolver │ ERROR
org.ops4j.pax.web.pax-web-runtime                  │ OFF
su.litvak.chromecast.api.v2.Channel                │ ERROR

Any suggestions? Should I look elsewhere than these sttings, or have I just missed one? Thx

Did you change anything in the log4j2.xml file to filter out log entries ?

At least, not on purpose.
Here is the file content:

<?xml version="1.0" encoding="UTF-8" standalone="no"?><Configuration monitorInterval="10">

		<!-- Console appender not used by default (see Root logger AppenderRefs) -->
		<Console name="STDOUT">
			<PatternLayout pattern="%d{HH:mm:ss.SSS} [%-5.5p] [%-36.36c] - %m%n"/>

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

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

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

		<!-- OSGi appender -->
		<PaxOsgi filter="*" name="OSGI"/>

		<!-- Root logger configuration -->
		<Root level="WARN">
			<AppenderRef ref="LOGFILE"/>
			<AppenderRef ref="OSGI"/>

		<!-- Karaf Shell logger -->
		<Logger level="OFF" name="org.apache.karaf.shell.support">
			<AppenderRef ref="STDOUT"/>

		<!-- Security audit logger -->
		<Logger additivity="false" level="INFO" name="org.apache.karaf.jaas.modules.audit">
			<AppenderRef ref="AUDIT"/>

		<!-- openHAB specific logger configuration -->

		<Logger level="INFO" name="org.openhab"/>

		<Logger level="ERROR" name="openhab.event.ItemStateEvent"/>
		<Logger level="INFO" name="openhab.event.ItemAddedEvent"/>
		<Logger level="ERROR" name="openhab.event.ItemRemovedEvent"/>
		<Logger level="ERROR" name="openhab.event.ItemChannelLinkAddedEvent"/>
		<Logger level="ERROR" name="openhab.event.ItemChannelLinkRemovedEvent"/>
		<Logger level="DEBUG" name="openhab.event.ThingStatusInfoEvent"/>
		<Logger level="DEBUG" name="openhab.event.ThingAddedEvent"/>
		<Logger level="DEBUG" name="openhab.event.ThingUpdatedEvent"/>
		<Logger level="DEBUG" name="openhab.event.ThingRemovedEvent"/>
		<Logger level="ERROR" name="openhab.event.InboxUpdatedEvent"/>
		<Logger level="DEBUG" name="openhab.event.RuleStatusInfoEvent"/>
		<Logger level="DEBUG" name="openhab.event.RuleAddedEvent"/>
		<Logger level="DEBUG" name="openhab.event.RuleRemovedEvent"/>
		<Logger level="DEBUG" name="openhab.event.StartlevelEvent"/>
		<Logger level="INFO" name="openhab.event.AddonEvent"/>

		<Logger additivity="false" level="DEBUG" name="openhab.event">
			<AppenderRef ref="EVENT"/>
			<AppenderRef ref="OSGI"/>

		<Logger level="INFO" name="javax.jmdns"/>
		<Logger level="ERROR" name="org.jupnp"/>

		<!-- This suppresses all Maven download issues from the log when doing feature installations -->
		<!-- as we are logging errors ourselves in a nicer way anyhow. -->
		<Logger level="ERROR" name="org.ops4j.pax.url.mvn.internal.AetherBasedResolver"/>

		<!-- Filters known issues of pax-web (issue link to be added here). -->
		<!-- Can be removed once the issues are resolved in an upcoming version. -->
		<Logger level="OFF" name="org.ops4j.pax.web.pax-web-runtime"/>

		<!-- Filters known issues of lsp4j, see -->
		<!-- https://github.com/eclipse/smarthome/issues/4639 -->
		<!-- https://github.com/eclipse/smarthome/issues/4629 -->
		<!-- https://github.com/eclipse/smarthome/issues/4643 -->
		<!-- Can be removed once the issues are resolved in an upcoming version. -->
		<Logger level="OFF" name="org.eclipse.lsp4j"/>

		<!-- Filters warnings for events that could not be delivered to a disconnected client. -->
		<Logger level="ERROR" name="org.apache.cxf.jaxrs.sse.SseEventSinkImpl"/>

		<!-- Filters known issues of KarServiceImpl, see -->
		<!-- https://github.com/openhab/openhab-distro/issues/519#issuecomment-351944506 -->
		<!-- Can be removed once the issues are resolved in an upcoming version. -->
		<Logger level="ERROR" name="org.apache.karaf.kar.internal.KarServiceImpl"/>

		<!-- Filters warnings about unavailable ciphers when JCE is not installed, see -->
		<!-- https://github.com/openhab/openhab-distro/issues/999 -->
		<Logger level="ERROR" name="org.apache.karaf.shell.ssh.SshUtils"/>

		<!-- Filters known issues of javax.mail, see -->
		<!-- https://github.com/openhab/openhab-addons/issues/5530 -->
		<Logger level="ERROR" name="javax.mail"/>

		<!-- Filters disconnection warnings of the ChromeCast Java API, see -->
		<!-- https://github.com/openhab/openhab-addons/issues/3770 -->
		<Logger level="ERROR" name="su.litvak.chromecast.api.v2.Channel"/>

		<!-- Added by Karaf to prevent debug logging loops, see -->
		<!-- https://issues.apache.org/jira/browse/KARAF-5559 -->
		<Logger level="WARN" name="org.apache.sshd"/>
		<Logger level="DEBUG" name="org.openhab.binding.somfytahoma"/>
		<Logger level="INFO" name="org.openhab.binding.caddx"/>


Should be close to standard?

Just to exclude that any unwanted manipulation of the log4j2.xml file would be the cause, I have compared it to this one. The biggest difference was the lacking of this entry:

<Logger level="ERROR" name="openhab.event.ChannelDescriptionChangedEvent"/>

I have added it now as well, but still no luck. There must be something else why this is not being logged.

I want to setup some more advanced rules, but it is hard without having the simple feedback if the file and syntax got well accepted by OH. I need to fix this first before moving on with the rest. So I’m a bit stuck now.
Any suggestion would be highly appreciated. Thx!

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.