updating logging to simpler interface