You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ron Grabowski (Jira)" <ji...@apache.org> on 2022/01/26 00:41:00 UTC
[jira] [Comment Edited] (LOG4J2-3332) SmtpAppender: add capability to send buffered messages as an email attachment (text, zip, gzip)
[ https://issues.apache.org/jira/browse/LOG4J2-3332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17480518#comment-17480518 ]
Ron Grabowski edited comment on LOG4J2-3332 at 1/26/22, 12:40 AM:
------------------------------------------------------------------
[~ggregory] can you take a look at this first version and provide feedback:
* [https://github.com/ronosaurus/logging-log4j2/commit/3bcca8dd5b779ac1b3951c7c9d469ac2c79aafd2]
This is my first contribution so I'm very open to feedback.
-I couldn't figure out how to add commons-email to the log4j2-core pom.xml. IntelliJ kept saying it wasn't available even though its easily discoverable: [https://mvnrepository.com/artifact/org.apache.commons/commons-email/1.5] I must be missing something obvious. I thought our pom files shipped with the necessary registered repositories.- After several cleans/rebuilds commons-email in log4j-core's pom.xml worked as expected.
was (Author: rgrabowski):
[~ggregory] can you take a look at this first version and provide feedback:
* [https://github.com/ronosaurus/logging-log4j2/commit/3bcca8dd5b779ac1b3951c7c9d469ac2c79aafd2]
This is my first contribution so I'm very open to feedback.
I couldn't figure out how to add commons-email to the log4j2-core pom.xml. IntelliJ kept saying it wasn't available even though its easily discoverable: [https://mvnrepository.com/artifact/org.apache.commons/commons-email/1.5] I must be missing something obvious. I thought our pom files shipped with the necessary registered repositories.
> 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)