Updated logging api