'log4j2 upgrade with log4j1 adapter email trigger not working

I upgraded my log4j2 from log4j1 with the help of log4j-1.2-api adapter as one of the api which I consume still using log4j1 so had to use the log4j1 adapter. After the upgrade i observed log4j2 is not triggering email. Except the dependency upgrade i have not updated the log4j properties file , here is the log4j.properites to send email

#Email logger
log4j.logger.EMAIL=INFO, SMTP
log4j.additivity.EMAIL=false
log4j.appender.SMTP.layout=org.apache.log4j.SimpleLayout
log4j.appender.SMTP=org.apache.log4j.net.SMTPAppender
[email protected]
log4j.appender.SMTP.SMTPHost=mail-gw.test.net
log4j.appender.SMTP.Subject=issue reported
[email protected]

is there anything new added to support email send in log4j2? version of log4j2 is 2.17.x



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source