Issue of the topic:
the IDE has been setup and i can run OSGI debug in eclipse.
as i try to debug a binding i like to get some more logs
the org.apache.karaf.shell.cfg in openhab-main/git/openhab-distro/distributions/openhab/src/main/resources/userdata/etc
has
sshPort = 8101
sshHost = 0.0.0.0
i try to connect like this
ssh openhab@localhost -p 8101 -vvv
OpenSSH_8.2p1 Ubuntu-4ubuntu0.2, OpenSSL 1.1.1f 31 Mar 2020
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolving âlocalhostâ port 8101
debug2: ssh_connect_direct
debug1: Connecting to localhost [::1] port 8101.
debug1: connect to address ::1 port 8101: Connection refused
debug1: Connecting to localhost [127.0.0.1] port 8101.
debug1: connect to address 127.0.0.1 port 8101: Connection refused
ssh: connect to host localhost port 8101: Connection refused
I am not in reach of a computer atm, but AFAIR, you will find a logger config in the demo app project, where you can add logging definition for your binding. Thatâs how I always do itâŠ
Yes, Felix Gogo isnât as fully featured as the normal Karaf console. Youâll need to edit log4j2.xml to enable debug logging for your binding as @hmerk mentioned. You can find it in openhab-distro, under Infrastructure/launch/app/runtime in the Eclipse package explorer. Look for the comment line that says âUncomment this logger and update the name to enable debug logging for a bindingâ.