Save log to file