move logging.basicConfig to main func (#511)
Merge pull request #514 from matleh/logging-config

move logging.basicConfig to main func (#511)