[
https://issues.apache.org/jira/browse/LOG4J2-994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ron Grabowski updated LOG4J2-994:
---------------------------------
Fix Version/s: 2.9.0
> 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
> Priority: Major
> Fix For: 2.9.0
>
>
> 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
(v8.20.1#820001)