Natalia Britvikhina created LOG4J2-994: ------------------------------------------
Summary: SmtpAppender doesn't allow bufferSize 0 Key: LOG4J2-994 URL: https://issues.apache.org/jira/browse/LOG4J2-994 Project: Log4j 2 Issue Type: Bug Components: Appenders Affects Versions: 2.2 Reporter: Natalia Britvikhina SmtpAppender has a bufferSize parameter that allows for buffering of events for inclusion in the message. I have a use case where I don't want to include any previous events but just the Error event that triggered the email. Unfortunately setting bufferSize to 0 cause a +"The maxSize argument (0) is not a positive integer"+ Exception from CyclicBuffer. Looking at the SmtpManager code it appears to be possible to allow for the buffer to be null if bufferSize is set to 0, and only send the message with the current event. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org