Masking Card Data Using log4j2

208 Views Asked by At

I want to mask track data , card data and etc , my pattern of logging is as follows plain text : userID=1234|trackData=789654asdas|pin=897|userName=445566 Masked text : userID=1234|trackData=|pin=|userName=445566

i don't want to print this data which is sensitive , is there any way to do so , also i am not using spring boot or spring mvc architecture , this is normal rest api's.

0

There are 0 best solutions below