-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Why was KLogging deprecated? #399
Comments
Thank you for reporting an issue. See the wiki for documentation and slack for questions. |
you can do the following:
or if you like to use a companion object:
|
This begs the question why was the raw string usage deprecated? The lambda is an optimization only if the log is ultimately not omitted (and the log string contains interpolation). Otherwise it's actually an (admittedly small) pessimization, since you need the extra bytecode and memory usage for the lambda, and extra CPU for invocation. In practice the log level is fixed in production, and we would never want to suppress |
The main motivation was to make the api clearer. |
I see that the following usage of KLogging is now deprecated:
If this usage is deprecated, with what idiom should I replace it?
The text was updated successfully, but these errors were encountered: