You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Romain Moreau (Jira)" <ji...@apache.org> on 2021/10/16 16:28:00 UTC

[jira] [Created] (LOG4J2-3174) Wrong subject on mail when it depends on the LogEvent

Romain Moreau created LOG4J2-3174:
-------------------------------------

             Summary: Wrong subject on mail when it depends on the LogEvent
                 Key: LOG4J2-3174
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3174
             Project: Log4j 2
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.14.1
            Reporter: Romain Moreau


SmtpManager doesn't work as expected ; when the subject is a pattern that depends on the LogEvent (e.g. %m), the subject stay the same for all the subsequent events because the subject is once before *the first* mail is sent.

In the pull request that I will submit on GitHub, the subject will be set on the message before *each* mail is sent.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)