Agree. There is no need to complicate an application just to compensate for
someone else's poor design. I am more than happy to use a script filter in
this case, I just wanted to be sure there wasn't already something there.

Robert Egan
--
*VSolvit LLC*, *CMMI (Level 3), ISO 9001, ISO 20000-1, ISO 27001*
*1305 Executive Blvd. Ste. 160 | Chesapeake | VA | 23320*
*(617) 455-1425*
www.vsolvit.com

*VSolvit (We*Solve*it) *is an award winning technology services company
that specializes in the areas of Geographic Information Systems and IT
application development / database integration.

*Cyber-security ~ Cloud Computing ~ GIS ~ Business Intelligence ~ Data
Warehousing.*

*CONFIDENTIALITY NOTICE:* This communication, including attachments, is for
the exclusive use of addressee and may contain proprietary, confidential or
privileged information. If you are not the intended recipient, any use,
copying, disclosure, dissemination or distribution is strictly prohibited.
If you are not the intended recipient, please notify the sender immediately
by return email and delete this communication and destroy all copies.


On Fri, Apr 5, 2024 at 3:25 AM Volkan Yazıcı <vol...@yazi.ci> wrote:

> If a user can simply solve this using a `ScriptFilter`, I am not keen on
> adding a custom filter to support this use case out of the box – in
> particular, when the user themselves signals "a poor design" on the
> application side.
>
> I am in favor of making the custom filter implementation process as
> frictionless as possible, instead of making them a part of the default
> distribution. I think `PatternLayout` and `JsonTemplateLayout` are good
> examples of this principle – we stopped serving structures, but enabled
> users to serve themselves instead.
>
> On Thu, Apr 4, 2024 at 10:46 PM Piotr P. Karwasz <piotr.karw...@gmail.com>
> wrote:
>
> > Hi Ralph,
> >
> > On Thu, 4 Apr 2024 at 21:01, Ralph Goers <ralph.go...@dslextreme.com>
> > wrote:
> > > I really have no idea why but this is the first time I have heard
> > someone ask for the ability to filter based on the Exception class.
> >
> > This came out at least once before: see the SO "Log4j - How to log
> > specific exception into a separate file?" question[1].
> >
> > There is a sample code in the answer to that question, feel free to
> > make a PR out of it.
> >
> > Piotr
> >
> > [1] https://stackoverflow.com/q/76919416/11748454
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> > For additional commands, e-mail: log4j-user-h...@logging.apache.org
> >
> >
>

Reply via email to