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

Only evaluate expressions when there is a sink for the log message #5

Open
stefandraskovits-aaa opened this issue Feb 21, 2023 · 0 comments

Comments

@stefandraskovits-aaa
Copy link

Creating log messages can be expansive (e.g. network response body mapping to string).
Currently the expressions for messages (on the caller sites) are already generated when calling the log message.

When wrapping the expression in a closure the closure can only be evaluated if there is a sink even consuming the the message.

with @autoclosure this doesn't change the way of interacting with logbook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant