refactored logging methods in api to reflect changes in the core