Added a logging sample.