Set up logs in config.py in appropriate way

Change-Id: Ia2bb8d7a7c2c86e2028cdd6337ca4d12a77ef648