Added console handler that outputs various onMessage() event situations
to console.