Log to file and uptdate todo