Yes, it should be possible to specify whether any characters are visible in logs in the settings.

It is not very useful because I do not believe those four characters can be retrieved later. So allowing visibility in the logs can be a security risk, with no benefit (unless I am mistaken) to offset the drawback.