Christopher Smith wrote:

So, I just started playing with log4cxx today. I've used log4cpp in the past, but it appears to have stagnated, so I thought I'd make a change.

Anyway, one of the first things I noticed was that NDC's don't have a natural way to follow the RAII paradigm to ensure they get cleaned up.


The NDC constructor/desctructor already implement RAII. One can write :

{
   NDC::NDC("message")
   // ...
}

Regards

Christophe

Reply via email to