java - Are static Logger references still capable of Memory Leaks? -


i looking log strategies , found this article, talking dangers of static logger references.

the official log4j2 documentation shows static logger pattern on it's examples, got me intrigued it:

// define static logger variable references // logger instance named "myapp". private static final logger logger = logmanager.getlogger(myapp.class); 

i using log4j2and wanted know if still problem, since article written in 2009.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -