Joke Collection Website - Public benefit messages - Log4j2 filter article
Log4j2 filter article
MapFilter is mainly used to filter MapMessage (a class in log4J2 framework). This filter does not handle general log information, for example, it specifically handles parameters similar to the following methods.
The analysis is almost consistent with MapFilter. To filter the tags in the log information, look at the info () method of the Logger class, as shown below:
Information marked by specific tags can be filtered, otherwise it will not pass the filtering (including not using tags).
Log information that matches the regular expression will pass through the filter, as shown in appender:
Regular expression. * testing. * means several arbitrary characters (not including several, not explained here)+space+test word+space+several arbitrary characters.
For example, the A test failed because there were no spaces after the test.
- Related articles
- Phoenix Yun Zhi recovered the password.
- Princess Aisha in real life blew romance?
- How to set the ringtone of Android phone
- How to register for Liuliubao?
- The joy of housewarming, I can't help but bask in a 70ŠO new house. I didn't expect my circle of friends to be full of praise!
- Why can't I get the verification code of Jiangxi smart medical insurance registration?
- How to add 12 1 10 area code?
- How to solve the problem of mobile phone information being stolen
- Can I change the annual payment method when I buy whole life insurance with an increase of 1 1 day?
- Thank you for receiving the red envelope on March 8th.