Save client log to file

Fixes #42