Added console-shim if console is not supported. Added log level to messages.