add hooks, configurable time between checking the status of the method
actually truncate log file instead of just deleting it entirely