Attach logger to Console only when in terminal mode.

If *mb* is started in background Console logging should be disabled.
If not whole *mb* could hang when kernel buffer is full.
Merge pull request #49 from zedar/master

Attach logger to Console only when in terminal mode.