Redirecting stderr for future logging