Use logger instead of print or safe_print