Simplifying internal logging hooks; closes #53.