You can set the debug level in two ways with the Kwwika JavaScript API. Using a Query StringThe first is by setting a debug query string for your web page. e.g. http://www.example.com/my-kwwika-page.html?debug=<debug_level> The valid values for <debug_level> are defined in the following JSDoc page: e.g. http://www.example.com/my-kwwika-page.html?debug=finest When the debug level is set in this way the Kwwika JavaScript library will output debug information to the web browser console. ![]() In CodeWhen you call kwwika.Service.Connect you pass a configuration object. If you set the logLevel property on this object this sets the level that the Kwwika JavaScript library will log at. The possible values for LogLevel are defined on the following JSDoc page: The following example shows how to set the logLevel and also receive log messages updates and append them to the web page. var conn = kwwika.Service.connect({ logLevel:"finest", logMessageReceived:function(msg, level) { if(document.body) { var logEntry = document.createElement("div"); var text = document.createTextNode(level + ": " + msg); logEntry.appendChild(text); document.body.appendChild(logEntry); } } }); You can see this example in action here. |

