https://kodejava.org/how-do-i-write-log-to-a-file/
How do I write log to a file?