JakeWharton / JakeWharton/hugo
Adding support for appending toString() of this object to the method log?
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 7.9k
- Forks
- 792
- PR merge metrics
- No merged PRs in 30d
Description
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!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating Hugo's method-call logging entry point and reviewing how the current log records method names, parameters, and elapsed time. Done means the log can optionally append the logged object's toString() value in the requested format, with the existing logging behavior preserved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- observability
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100