Save logs to files

#11