modify logging sample.