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
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