Add logging thread.
(IntelliJ files).
Merge pull request #1 from gkopff/logging-thread

Logging thread