run_demo: log also thread id
Removed newlines from log message. Logging appends them automatically.
First incarnation of log.cpp complete.