@wiewior (Jacek) posted a new topic, subject "Debugging e-mail notification". It read:

   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:
    [code] 
        log:set DEBUG org.openhab.action.mail
        
    [/code]
    
    hoping for error if there is no such binding. Later, I wanted to remove it and typed:
    [code] 
        log:set DEFAULT org.openhab.action.mail
        
    [/code]
    
    The result is following:
    [code] 
        openhab> log:list
        Logger                                             │ Level
        ───────────────────────────────────────────────────┼──────
        ROOT                                               │ WARN
        javax.jmdns                                        │ ERROR
        org.apache.karaf.jaas.modules.audit                │ INFO
        org.apache.karaf.kar.internal.KarServiceImpl       │ ERROR
        org.apache.karaf.shell.support                     │ 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.
        
        
    [/code]
    
    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

So @sihui (SiHui) replied

    wiewior:
    
    > How to deactivate (remove from log) org.openhab.action.mail?
    
    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.

To which @wiewior (Jacek) replied

    Thanks sihui for the hint. You are right. I commented dedicated action.mail line and it solves problem:
    [code] 
        # OSGi appender
        log4j2.appender.osgi.type = PaxOsgi
        log4j2.appender.osgi.name = OSGI
        log4j2.appender.osgi.filter = *
        #log4j2.logger.org_openhab_action_mail.name = org.openhab.action.mail
        log4j2.logger.org_apache_sshd.level = WARN
        log4j2.logger.org_apache_sshd.name = org.apache.sshd
        
        
    [/code]
    
    Since I use Raspberry Pi the configuration file is located here:
    [code] 
        /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg
        
    [/code]
    
    One problem solved


{'source': 'discourse', 'url': 'https://community.openhab.org/t/debugging-e-mail-notification/74665', 'title': 'Debugging e-mail notification', 'views': 301, 'has_accepted_answer': False, 'word_count': 381, 'like_count': 0, 'reply_count': 1, 'participant_count': 2, 'posts': 3, 'tags': 'openhab2', 'author': '@wiewior (Jacek)', 'participants': '@wiewior (Jacek), @sihui (SiHui)', 'image_url': [None], 'created_at': '2019-05-18T09:51:44.776Z', 'last_posted_at': '2019-05-18T10:56:37.393Z'}