Error when trying command log:xxx in openHAB console

Dear all

Suddently I cannot run any log:xxx commands. I alwys get follwoing errors:

openhab> log:tail
[Fatal Error] :124:36: Character reference "&#27" is an invalid XML character.
                                                                              Error executing command: Unable to retrieve level for logger

Somehow I destroyed something. has anybody an idea how I get this working again?

seems to be the apostrophe character ( see ' - apostrophe (U+0027) - HTML Symbols ).
Did you edit the configuration files that define log levels and filters for logging ?

Thanks Wolfgang,

it could well be that i did a change in the file, but unconsciously via a wrong line command.
How can i restore that?

in case you have a backup from that one.
There should be online xml file checkers/validators.

Hi Wolfgang

I found in the log4j2.xml a last line, which is

<Logger level="DEBUG" name="&#27;"/>

It seems that i mistakenly entered this in the command line. Can I just delete this line in the log4j2.xml and then it should work again?

yes, it should work again.
I do not know if the change in the file is immediately detected or something need to be restarted but removing the entry should/must help.

Hi Wolfgang

after deleting the line it works again. thank you!

1 Like