replace hardcoded logging host & port with parameters