Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logstage: macro helper for logging method calls with parameters and returns #2157

Open
neko-kai opened this issue Aug 1, 2024 · 0 comments

Comments

@neko-kai
Copy link
Member

neko-kai commented Aug 1, 2024

log.logMethod(Debug) {
  f(a, b, c)
} // call to f with a=1 b=2 c=3 produced res=6
(f(-1, 2, 3): F[String, Int])
  .logMethod(Debug) // call to f with a=-1 b=2 c=3 produced error="Number must not be negative"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants