-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Feature Request: Google Flogger #1697
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
Comments
example desugar:
Notes:
We can add it.. not sure it's worth the effort for you to use it, but for consistency's sake, eh. It's an hour or two, mostly to write the requisite documentation and config keys. There's no way to provide a name, the above code is the only way, and there's nothing you can feasibly configure. |
I didn't realize that was the reasoning behind the log annotations. I thought it was to reduce boilerplate. Are you certain the stack trace call is expensive? I ask because everything else in Flogger is highly optimized, and the main two operations are a single, cached reflective Class.forName() call, and a Throwable.getStackTrace() call, which should be quicker than the expensive Thread.getStackTrace. I would definitely use it if it were added to Lombok, as I have used it in other projects. I think other users might enjoy it, too. :) |
I can't speak for him, but I'm sure, it's relatively expensive. It'd very bad for performance when done for every log line, but it hardly matters when done once per class. I guess, it can (and will) be optimized using JEP 259, but I'd bet, hardly anybody will notice. |
Sorry if this is the wrong place for feature requests.
Lombok is great, and the concept of
@Log
and other loggers is very good. However, out of the many logger options, it doesn't include the best logger: Flogger. Compare the other loggers:Flogger is very fast (including optimized parameterized logging) and includes features like:
Thanks for consideration.
The text was updated successfully, but these errors were encountered: