• Post Reply Bookmark Topic Watch Topic
  • New Topic

LOG4J  RSS feed

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using log4j to my project for logging datas.

the following code is used to create Logger instance.



My question is why should we declare Logger as static?


thakns in advance.
 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forget log4j for a moment. Do you understand in general why we would choose to make something static or choose to make it non-static?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!