Replaces root logging in python libraries