Make toLog an object method _toLog