Log settings in karaf not saved after restart

I had set some bindings to log level TRACE.

like this:

log:set TRACE org.openhab.binding.mqtt

Then I set the log level back to DEFAULT.and eveything seemed fine.

[..]
openhab> log:set DEFAULT org.openhab.binding.enocean
openhab> log:set DEFAULT org.openhab.binding.enocean1
openhab> log:set DEFAULT org.openhab.binding.kostalinverte
openhab> log:set DEFAULT org.openhab.binding.kostalinverter
openhab> log:list
Logger                                                      | Level
-------------------------------------------------------------------
ROOT                                                        | WARN
javax.jmdns                                                 | ERROR
org.apache.aries.spifly                                     | ERROR
org.apache.karaf.kar.internal.KarServiceImpl                | ERROR
org.eclipse.smarthome                                       | INFO
org.jupnp                                                   | ERROR
org.openhab                                                 | INFO
org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper | ERROR
smarthome.event                                             | INFO
smarthome.event.InboxUpdatedEvent                           | ERROR
smarthome.event.ItemStateEvent                              | ERROR
smarthome.event.ThingStatusInfoEvent                        | ERROR

But after restarting openhab, the TRACE logs are still back. :frowning:

openhab> log:list
Logger                                                      | Level
-------------------------------------------------------------------
ROOT                                                        | WARN
javax.jmdns                                                 | ERROR
org.apache.aries.spifly                                     | ERROR
org.apache.karaf.kar.internal.KarServiceImpl                | ERROR
org.eclipse.smarthome                                       | INFO
org.jupnp                                                   | ERROR
org.openhab                                                 | INFO
org.openhab.binding.avmfritz                                | TRACE
org.openhab.binding.enocean                                 | TRACE
org.openhab.binding.enocean1                                | TRACE
org.openhab.binding.kostalinverte                           | TRACE
org.openhab.binding.kostalinverter                          | TRACE
org.openhab.binding.lifx                                    | TRACE
org.openhab.binding.mqtt1                                   | TRACE
org.openhab.binding.netatmo                                 | TRACE
org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper | ERROR
smarthome.event                                             | INFO
smarthome.event.InboxUpdatedEvent                           | ERROR
smarthome.event.ItemStateEvent                              | ERROR
smarthome.event.ThingStatusInfoEvent                        | ERROR

Even some, I had misspelled before. :confused:

Any idea why openhab does not save my DEFAULT log level?

I noticed this as well. There is an extra line written tot the log configuration file that is not removed when reverting to DEFAULT. Only when setting something else than DEFAULT, it will get overwritten. I solved it by removing the extra line from the log configuration file. Here is the doc for it: logging documentation. I think you could consider this a bug.

Seems it is not a bug but expected behaviour of Karaf.

I think it is a bug.

And I don’t see anybody who disagrees.
Kai only said, that the issue belongs to another repository and he did not read the whole discussion.

I closed my previously opened issue, because of the one you linked.

Thanks