JakeWharton / JakeWharton/hugo

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

Open
#152 1 comment 2 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.