Debugging e-mail notification

Platform information:
Raspberry Pi v.3+
Openhab 2.4

I have problems with e-mail notification. Before opening a new thread wanted research on my own withing debug mode. So I learned about karaf console and play with logs notification.

My goal is to debug what is happening while sending e-mail. So all information regarding this action I wish to see in logs. I do not know in wich binding this could be so I typed (stupidly) this:

log:set DEBUG org.openhab.action.mail

hoping for error if there is no such binding. Later, I wanted to remove it and typed:

log:set DEFAULT org.openhab.action.mail

The result is following:

openhab> log:list
Logger                                             │ Level
ROOT                                               │ WARN
javax.jmdns                                        │ ERROR
org.apache.karaf.jaas.modules.audit                │ INFO
org.apache.karaf.kar.internal.KarServiceImpl       │ ERROR                     │ OFF
org.apache.sshd                                    │ WARN
org.eclipse.jetty.util.thread.ThreadPoolBudget     │ ERROR
org.eclipse.smarthome                              │ INFO
org.jupnp                                          │ ERROR
org.openhab                                        │ INFO
org.openhab.action.mail                            │
org.ops4j.pax.url.mvn.internal.AetherBasedResolver │ ERROR
org.ops4j.pax.web.pax-web-runtime                  │ OFF
smarthome.event                                    │ INFO
smarthome.event.InboxUpdatedEvent                  │ ERROR
smarthome.event.ItemAddedEvent                     │ ERROR
smarthome.event.ItemRemovedEvent                   │ ERROR
smarthome.event.ItemStateEvent                     │ ERROR
smarthome.event.ThingAddedEvent                    │ ERROR
smarthome.event.ThingRemovedEvent                  │ ERROR
smarthome.event.ThingStatusInfoEvent               │ ERROR
openhab> Connection to localhost closed by remote host.
Connection to localhost closed.

Now my questions:

  1. How to deactivate (remove from log) org.openhab.action.mail?
  2. What binding shall I use to debug mail notifications feature?

Thanks for your support

Check your /userdata/etc/org.ops4j.pax.logging.cfg for any entry related to your log:set statement, probably at the end of the file.

Thanks sihui for the hint. You are right. I commented dedicated action.mail line and it solves problem:

# OSGi appender
log4j2.appender.osgi.type = PaxOsgi = OSGI
log4j2.appender.osgi.filter = * = org.openhab.action.mail
log4j2.logger.org_apache_sshd.level = WARN = org.apache.sshd

Since I use Raspberry Pi the configuration file is located here:


One problem solved :wink: