fix for logging class log allowing duplicates, now optional