Moved Logging configuration from module header to __main__ run