Details
Description
When configuring an SMTP appender as follows, I would expect the smtpHost property to be interpolated, and the appropriate environment variable substituted:
<SMTP name="Mailer" subject="Error" to="test@test.com" from="do-not-reply@test.com"
smtpHost="${env:SMTP_HOST}" smtpPort="25" bufferSize="1"></SMTP>
Instead, Log4J complains that the host ${env:SMTP_HOST} is unknown.
The documentation does not state that these variables cannot be interpolated, so from reading the manual I would assume this is a bug and not, in fact, by design.
Attachments
Issue Links
- duplicates
-
LOG4J2-192 ${env:...} is not replaced in fileName
- Closed