Use new logging mechanism in examples