my dog learned polymorphism*
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


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