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

Added the feature to update mime message before sending the email

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.3.0-alpha1
    • Component/s: logback-core
    • Labels:
      None
    • Environment:

       

      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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: