JakeWharton / timber

A logger with a small, extensible API which provides utility on top of Android's normal Log class.
https://jakewharton.github.io/timber/docs/5.x/
Apache License 2.0
10.41k stars 959 forks source link

Make some methods open to allow custom Throwable format #437

Open ichenhe opened 3 years ago

ichenhe commented 3 years ago

The default handling of Throwable is to print the full stack, which may be too large.

Actually, I don't think prepareLog should append the throwable to the message so that the subclass can decide what to do with them.

But in order not to break the behavior, could you make prepareLog() or getStackTraceString() open and protecte? Then I can change the format.