Save log to file on data directory.