How do I log something from UXP C++ addone?

How do I print logs from UXP C++ addon and where are they stored on Win and on Mac