fixes to examples in logging