updated datalogger to use file based logging