Add a logging hook to BoneCP