JakeWharton / JakeWharton/timber

Allow customization of how message preparation is done in prepareLog (appending stack trace of throwable, etc)

Open
#240 4 comments 5 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
10.8k
Forks
994
Avg merge
17h 16m
Merged PRs (30d)
17

Description

It'd would be nice to be able to customize how the message to be logged is handled/modified. Current behavior always adds the stack trace of the throwable (either sets it if message == null, or appends it).

A stack trace in the log line might not render well in the crash reporting tool, and it would be useful to have more control over what *exactly* gets logged/reported when I call Timber.e(t1, m1, args1...);

This is a first shot of what I'm looking for:
https://github.com/brAzzi64/timber/tree/prepareMessage

Thoughts?

Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the prepareLog behavior described in the issue and the linked prepareMessage branch, then trace how Timber.e(t1, m1, args1...) prepares its message. Done means agreeing on and implementing an extensible customization point that lets callers control throwable stack-trace handling and the exact logged output.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.