Receiving Logs with LogReceiver
To receive logs on your app with LogReceiver, register your custom LogReceiver objects with Mobile SDK. Each LogReceiver is provided to Mobile SDK by the LogReceiverFactory interface. Mobile SDK provides the component name upon instantiation, as well as the log entry’s level, tag, message, and error.
For example, see these code samples. You can add the code where your app initializes Mobile SDK.