Output log from device

I want to capture device log. How to capture device log ? Which configuration I need to enable in SDK ? Can you provide sample example which capture device output log ?

Related