Basic Customization > User Interface Customization > Presenting Information in the UI > UI Validation > Solutions > Miscellaneous Tips, Tricks, and Things to Avoid > UIValidationCriteria.toString()
  
UIValidationCriteria.toString()
UIValidationCriteria, the toString() is not over-ridden to give information of its content. You can use the following method for logging.
public String toString_heavy(Logger logger, Level level)
If the Level of the Logger matches with the Level provided, the method will return the information. Since the method performs some costly calculations, it’s suggested to use this it wisely.