[ 
https://issues.apache.org/jira/browse/LOG4J2-3332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17480520#comment-17480520
 ] 

Ron Grabowski commented on LOG4J2-3332:
---------------------------------------

I intercepted Transport.send because I couldn't get Dumbster to process 
messages with attachments. Mocking/intercepting is a lot faster than actually 
sending the mail to Dumbster.

> SmtpAppender: add capability to send buffered messages as an email attachment 
> (text, zip, gzip)
> -----------------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-3332
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3332
>             Project: Log4j 2
>          Issue Type: New Feature
>          Components: Appenders
>            Reporter: Ron Grabowski
>            Assignee: Ron Grabowski
>            Priority: Minor
>
> Sending hundreds of buffered messages in an email body makes it difficult to 
> view messages in a more traditional text (fixed font) view. Introduce new 
> parameters that default to current behavior:
>  * attachEvents: true/false (defaults to false)
>  * attachEventsCompression: none/zip/gzip (defaults to none)
> In the first iteration the filename will be "logEvents":
>  * logEvents.txt
>  * logEvents,txt.zip
>  * logEvents.html.zip
>  * logEvents.txt.gz
>  * logEvents.html.gz
> Settings like compression level will not be settable. Enhanced compression 
> settings (bzip2, xz, pack200, deflate) will likely not be included.
> This ticket will not add support for a timer to flush events. 
> Change will occur in SmtpManager.
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to