I know. My contribution to a temporary solution for your task could be that subscribing to a file system event on the log file would avoid polling every second when there is no need for it. ;)