• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Singleton implementation in loggig / log4j

 
Mainak Goswami
Ranch Hand
Posts: 52
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I was just going through the Log4j architecture and wondering if Log4j does implement Singleton pattern. Can anybody please highlight the log4j architecture and how does it implement singleton pattern. Any pointers will also be useful.
Thanks in advance.

Mainak
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Log4j does not restrict the possible set of loggers. It uses an inheritance of Loggers inheriting from the root logger so I don't know if you would put that down as singleton.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic