logger sample: test logging to a file