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

Avoid unnecessary lambda calculations when logging is disabled #126

Open
neikist opened this issue Jun 26, 2024 · 2 comments
Open

Avoid unnecessary lambda calculations when logging is disabled #126

neikist opened this issue Jun 26, 2024 · 2 comments

Comments

@neikist
Copy link

neikist commented Jun 26, 2024

If we even have all log levels disabled, the lambda for the message is still calculated. This affects performance and memory consumption. We can add a second log method with a lambda argument instead of a string message and evaluate this lambda only if necessary.

@matbadev
Copy link

This would be fixed with #114 but that PR is already open for more than one year 🤔

@kasem-sm
Copy link

kasem-sm commented Aug 1, 2024

Any updates on this?

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

3 participants