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

efficiencies of getLogger()

2009-08-18 Thread david . weber
All, I was recently working on a project which was very time sensitive. Milliseconds were prescious, and we had great interest in using LOG4CXX, only in debugging problems (where time wasn't nearly as critical). On the web site, I saw that getLogger("asdf") will return the same object as a subs