I was looking into log strategies and I found this article, talking about the dangers of static logger references.
The official log4j2 documentation shows the static logger pattern on it's examples, so this got me really intrigued about it:
// Define a static logger variable so that it references the
// Logger instance named "MyApp".
private static final Logger logger = LogManager.getLogger(MyApp.class);
I am using log4j2and I wanted to know if this is still a problem, since the article was written back in 2009.