Piotr,

This solved the problem.  Thank you for all your help.

STEVEN M NELLIGAN

-----Original Message-----
From: Piotr P. Karwasz <pi...@mailing.copernik.eu> 
Sent: Tuesday, January 14, 2025 4:46 PM
To: Log4J Users List <log4j-user@logging.apache.org>
Subject: Re: Problem spliting file by logging level.

Hi Steven,

On 14.01.2025 23:29, Nelligan, Steven M wrote:
> Because of the java 7 limitation, I am using log4j2 version 2.12.1.
You should really upgrade to version 2.12.4, since 2.12.1 is affected by at 
least 5 CVEs.
> Is there another option/method available to handle this?

You can replace `LevelMatchFilter` with a `LevelRangeFilter`[1] (see 
also this SO question[2]):

<LevelRangeFilter minLevel="DEBUG" maxLevel="DEBUG"/>

Piotr

[1] 
https://urldefense.com/v3/__https://logging.apache.org/log4j/2.x/manual/filters.html*LevelRangeFilter__;Iw!!DZ3fjg!-gCwKRmKqGM543tcV_Ctv8_MWhlMEj0EnW955Zjf2gYiSjV1o6qzuKld7895mpmvN3OnRYeA7HFIcuT3aLyMwaOjKA$
 

[2] 
https://urldefense.com/v3/__https://stackoverflow.com/q/24695133/11748454__;!!DZ3fjg!-gCwKRmKqGM543tcV_Ctv8_MWhlMEj0EnW955Zjf2gYiSjV1o6qzuKld7895mpmvN3OnRYeA7HFIcuT3aLx58XNylA$
 


---------------------------------------------------------------------
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