JakeWharton / hugo

Annotation-triggered method call logging for your debug builds.
Apache License 2.0
7.92k stars 797 forks source link

Adding support for appending toString() of this object to the method log? #152

Open xyxzfj opened 7 years ago

xyxzfj commented 7 years ago

Current log consists only method name, parameters, and time used, which is too simple for me. Consider adding support for appending toString() of this object to the method log? Like:

V/Example: ⇢ getName(first="Jake", last="Wharton") [Person(123, 27)]

where Person(123, 27) is toString() method of this class (take Person as example):

String toString() {
    return "Person(" + id + ", " + age + ")";
}

Thanks!

Leaking commented 5 years ago

Try this plugin, it can help you.