Made log a class, made setNew/setNull in OwnPtr create/destroy