added callback for new log file writes