The static logger declaration is still a thing made by (older/elder? ;))
java developers, mainly because log4j 1.x/commons-logging/jul loggers
were advised to be made like that. With switch to slf4j static is no
longer mandatory/strongly recommended.
Most of code I make myself rely on logger field, but I've seen people
who do it with `@Slf4j` annotation coming from Lombok.
Anyhow, is there a intention (not yet a plan) to unify this part of our
code?
Best,
Łukasz
On 2.06.2023 08:35, chrisdutz (via GitHub) wrote:
GitHub user chrisdutz added a comment to the discussion: [Java] How should we handle
"loggers"?
And here ... even the Slf4j folks no longer recommend any general way of doing
things: https://www.slf4j.org/faq.html#declared_static
I guess in the past, there was a performance reason to to things, but this no
longer seems to apply today.
GitHub link:
https://github.com/apache/plc4x/discussions/973#discussioncomment-6068178
----
This is an automatically sent email for dev@plc4x.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@plc4x.apache.org