u have put star common star for all. Can i just mask last 4 digits for one variable in logs and for other mask all digits. Like credit number last 4 digit only, and cvv all 3 digit i want to mask. Can you help
Hi Gain Java Knowledge, can we create 2 rolling file in same time? one with masking and the other file without masking. I have added two rolling file appender in my logaback file but one rolling file only getting logs and other file is empty.
HI Sumit can you please explain the regex that you have used.
You can just use regex101 com site and paste regex there. then you will easily understand the regex every character meaning.
Big Fan Sir🙌
Thank you ☺️☺️
Again very knowledgeable and helpful, thank you
Thanks
How to mask pattern taken from db
Thanks a lot for this. I think you are a genuine Java-related UA-camr
Thanks Naman
I have to replace the variables password and creditCard by Name and Phone. It's not working. What changes should I make in code ?? Both are String
Please reply buddy it's very important for work.. please let me know if you could help
Any other way is there? Without logback. Like if i using log4j api, log4j core or log4j slf4j jars I can achieve this?
Yes you can easily use this.
u have put star common star for all. Can i just mask last 4 digits for one variable in logs and for other mask all digits. Like credit number last 4 digit only, and cvv all 3 digit i want to mask. Can you help
Hi Gain Java Knowledge, can we create 2 rolling file in same time? one with masking and the other file without masking. I have added two rolling file appender in my logaback file but one rolling file only getting logs and other file is empty.
Thanks neatly explained. But in my json apart from password if i use creditcard key also it is not masking. Please tell me how to rresolve
Check key must be case sensitive .
Is this also works for log4j loggers?
Same doubt, can you plz post a video using log4j
You can just update the logger library use log4j instead of slf4j and can verify 😊