Microsoft interview question

Minimal implementation of a logging system