logging sample