This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Singleton implementation in loggig / log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Singleton implementation in loggig / log4j" Watch "Singleton implementation in loggig / log4j" New topic
Author

Singleton implementation in loggig / log4j

Mainak Goswami
Ranch Hand

Joined: May 21, 2006
Posts: 50

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


------------------------------------
Mainak
idiotechie
------------------------------------
E Armitage
Rancher

Joined: Mar 17, 2012
Posts: 892
    
    9
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Singleton implementation in loggig / log4j