With the latest SDK you can override the debug trace function and have the messages go, for example, in a textarea in your app.
Look at com.adobe.rtc.util.DebugUtil.traceFunction.
Otherwise you can dig in the ConnectSession object and get the underlying NetConnection object.