Make toLog an object method _toLog
Merge branch 'class_refactor' into new_fail_value