How to mask credit card numbers in log files with Log4J?

You could write your own layout and configure it for all appenders…

Layout has a format method which makes a String from a loggingEvent that contains the logging message…

Leave a Comment