proof of concept code for tailing log files with a position variable exposed