How to log or print the messages for both passed and failed assertions

Here failed message get display, if placeholder do not match. But how to display message when assert get passed.

assert varActualUserNamePlaceHolderText.equalsIgnoreCase(“Enter User”) : “Placeholder text for field Username do not match. The correct value is " Enter UserName”"

Use if/else instead of assert

Thanks for the reply
For one or two condition it is ok to go with If else, so can i achieve the same using Listener?