introduced a public setLog method