
11 Feb
2009
11 Feb
'09
11:16 a.m.
Hi Vladimir,
I honestly think that having "loggers as class members" is a bad idea. [A class] represents a certain domain-specific abstraction and encapsulates the data and behavior relevant to that abstraction. A logger does not fit that description for me.
whether a logger fits into that description or not depends very much on the domain-specific thing that a particular class is supposed to represent. For instance, it's not hard to imagine classes that include logging as a part of their specification. Take care, Peter