|
Hi,
Just create an object NDC...
if ( LetsLogSomething )
{
NDC ndc("something");
mylog.info("bla-bla-bla");
}
Just remember that the NDC information ("something") will be put in the
log (assuming you've activated a pattern that inserts it into log messages)
until the NDC object ("ndc") is destructed - the end of the block in the above
mini-example.
Allen.
|
