with unify.Log():
to create a logging context,
and all calls to unify.log
will then update this existing log.
with unify.Log()
as often as possible is generally recommended,
as this avoids the need to pass explicit log handles throughout your program.
The code below uses explicit handles (each function has a log
argument):
Log
instance around: