appends logs to file