logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: Invoke custom code after RollingFileAppender append()
Date Fri, 15 Feb 2019 14:15:42 GMT
Maybe we should introduce the ability to inject a custom class pre and post
even processing? We could provide an implementation based on the scripting
API so folks could just write JavaScript directly in the config.

Gary

On Fri, Feb 15, 2019 at 7:34 AM gaurav <gaurav9822@gmail.com> wrote:

> Hi log4jusers,
>
> Want to invoke custom code(to send email) after the RollingFileAppender
> append event.
>
> What would you suggest?
>
> P.S. Cannot extend RollingFileAppender, as it is final.
>
> Please help
>
> Thank you,
> Gaurav
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message