Upgraded logging api