refactor logging functions to only handle chatlog pointers