setCustomSink
Set a custom sink for the traffic log. The log will be written to on the main thread, usually in bursts.
The provided stream will be buffered and periodically flushed by the SDK.
The SDK will write UTF-8 encoded text to the provided stream.
Setting a custom sink will not disable the other log outputs; the log will still be available via get and friends.
To disable the custom sink, call this method with null. Closing the provided stream before disabling the custom sink is undefined behavior.
The SDK will not close the provided stream, so you are responsible for closing it when you no longer need it.
Finally, setting a custom log stream may have a negative impact on performance, especially if the stream is slow or the log is very verbose, so use this feature with caution.
Parameters
OutputStream to write the log to.