Add environment variable to control library logging