update usage of Log in examples