updated to configure logging only once to remove log4net config error messages