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

前端 未结 2 1156
我在风中等你
我在风中等你 2020-11-29 04:58

Our web app needs to be made PCI compliant, i.e. it must not store any credit card numbers. The app is a frontend to a mainframe system which handles the CC numbers internal

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 05:41

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

提交回复
热议问题