create facility for api logging (#62)