finished code for posting to log console. Any object can post a notification to it.