Of course, in my own widgets/controls/components I use vanilla js console.log but sometimes for troubleshooting I need to know the state of built-in pega controls and they seems to use more sophisticated logging mechanism which I'd like to use as well.
Writing to pega logs is quite trivial: create an activity with Log-Message, expose it as Connect REST and call it asynchronously from client side js.
But I'd like to know:
How to enable it for debugging purposes?
If it's possible, use it in my own components as pega's logging seems to be more robust. But it requires at least a bit more documentation from pega.