Warn using the logger if available