RE: efficiencies of getLogger()

2009-08-31 Thread david . weber
ailto:carn...@apache.org] Sent: Tuesday, August 18, 2009 11:03 PM To: Log4CXX User Subject: Re: efficiencies of getLogger() The typical pattern is to use a static logger member in a class which results in getLogger() being called once per class during initialization: foo.h class Foo { statlc l

Re: efficiencies of getLogger()

2009-08-18 Thread Curt Arnold
The typical pattern is to use a static logger member in a class which results in getLogger() being called once per class during initialization: foo.h class Foo { statlc log4cxx::LoggerPtr logger; void hello(); }; foo.cpp log4cxx::LoggerPtr Foo::logger(Logger::getLogger("foo")); void