Separate logger

Use logger instead of `puts`. Logfile path is configurable via environment variable. Tested on my dev server, but works well for me.