refactoring logging setup in hostRpmBuilder