Improved logging config to use environment settings instead of programmatic configuration