refactoring log hostobject