Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1284

Added the feature to update mime message before sending the email

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 1.3.0-alpha1
    • 1.2.1
    • logback-core
    • None
    •  

    Description

      Useful to extend the SMTPAppender class in order to add some Email Headers such as X-Priority, In-Reply-To, ...

       

      Example of usage:

       

      ... updateMimeMsg(...) { 

        Level highLevel = cb.asList().stream().map(ILoggingEvent::getLevel).max(comparingInt(Level::toInt)).orElse(Level.DEBUG);

         mimeMsg.setHeader("X-Priority", convertToPriorityString(highLevel));

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            tetv Miguel Vale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: