Adds very simple log handling. Works 4 now, but probably should be improved more.
Adds settings for controlling the log handler.