We are looking for a log4j-style, C++ logging package to use in soft- and hard-realtime robotic systems. I was wondering if anyone has previously considered using log4cpp in realtime systems?
Obviously, appenders that write to disc, etc, would be in non-real-time parts of the system, but the ability to log from real-time tasks would be extremely useful. The real killer here is dynamic memory allocation, which log4cpp uses liberally. Without a O(c) allocator (few operating systems provide this), it is unuseable in real-time. Reviewing the code, it would require significant modifications to support real-time, however, this appears to be much more doable than with log4cxx, etc, due to a decent class design (and far less dependancies than APR!).
I was just wondering if it had ever been considered?