Actually, the log4j-to-slf4j code path uses Marker.isInstanceOf() which itself may be susceptible to the same infinite loop. Possible bug?
On 26 August 2014 07:42, Matt Sicker <[email protected]> wrote: > Thanks for the advice. I've updated that section. Now I think something > similar should be done in log4j-to-slf4j, too. So, note to self. > > > On 26 August 2014 00:38, Matt Sicker <[email protected]> wrote: > >> I started to consider something similar but didn't follow through quite >> yet. Good idea >> >> >> On Monday, 25 August 2014, Remko Popma <[email protected]> wrote: >> >>> About your cycle comment: >>> One option is to pass an ArrayList to Log4jMarkerFactory.convertMarker >>> and put processed elements in it. During recursive calls you check & return >>> when you detect that the list already contains the parameter you're about >>> to process. If a user does have a cycle this can prevent an infinite loop. >>> >>> Sent from my iPhone >>> >>> > On 2014/08/26, at 5:52, [email protected] wrote: >>> > >>> > Log4jMarkerFactory >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >> -- >> Matt Sicker <[email protected]> >> > > > > -- > Matt Sicker <[email protected]> > -- Matt Sicker <[email protected]>
