Hi, I setup my application to receive email on error via STMPAppender. I have multiple environment (Dev, Test, Staging and Production) and I would like to have the environment name in the message. I have an envionment variable target-environment on I tried to put it in the parternLayout like: But it doesn't work, the logger crashes. Does somebody have an idea or should I extend the SMTPAppender to add this environment variable as parameter and insert it in the message myself. Regards Dominique