ADding logging to MDI example, in progress