Major refactor: Make logger operate on ostreams, not printfs.
Improve MD accept log message.