add logger to hosts module