UI should write to log file (Fixes #10).