asLog

Utility to turn a Throwable into a loggable string.

The implementation is based on Timber.getStackTraceString(). It's different from android.util.Log.getStackTraceString in the following ways:

  • No silent swallowing of UnknownHostException.

  • The buffer size is 256 bytes instead of the default 16 bytes.