move logging sample to actually use NSB logging

remove some redundant code