Updated code to use a isSimilar() approach to two different logging
events