add logging sample