Skip to main content

All Questions

Tagged with
1 vote
1 answer
446 views

logger initialization in JEE based web application

While working on a web (JEE based) application I saw some different ways people have instantiated loggers in different classes. First way is classic way like, private static final Logger logger = ...
Prateek Jain's user avatar
7 votes
1 answer
9k views

Log4j logger per class vs logger per application

I am stuck at understanding a concept related to Logger creation, especially in the context of Java EE. In my experience, I nearly always used one logger per application, with few cases when I needed ...
XMight's user avatar
  • 185
5 votes
2 answers
667 views

Is it fine to use logs in the Helper Methods?

I have been doubting for a long time whether or not to have a logger in methods (usually helper methods) like the one below. Whether we can print it in the method or print the response where the ...
rolling stone's user avatar
6 votes
3 answers
133k views

SLF4J vs LOG4J Which one to prefer? [closed]

I have seen this question but does not answer me. It have a brand new project. I have almost always used Log4J but now I am seeing SLF4J making some waves. What is it that Log4J could not do and we ...
Shahzeb's user avatar
  • 310