add CSV logging support

Sample logger in logger.py