Added environment support for logging and config