add logger for warning messages