EasyLog - @LogIt - Masking Fields



String[] maskFields allows to replace actual values for field names of the objects passed with a method and returned by the method with "XXXMASKEDXXX".

_Note: Passed parameters and the result returned by the method is never modified. Here we just customize the logs appearance.

By default there is no masked field - maskFields is empty

The maskFields parameter can be used for:

  • masking any sensitive information that shouldn’t be logged - like passwords or credit card info
  • decreasing the amount of logged info. For example we can replace huge lists/arrays (in returned the results) that are not important in terms of logging with "XXXMASKEDXXX".