I am using following format. //log4cxx initialization log4cxx::LogManager::resetConfiguration(); log4cxx::LayoutPtr layoutPtr(new log4cxx::PatternLayout("%c-%p (%d{dd MMM yyyy HH:mm:ss}) [%-5t] %m%n")); log4cxx::AppenderPtr appenderPtr( new log4cxx::ConsoleAppender(layoutPtr, "System.err")); log4cxx::BasicConfigurator::configure(appenderPtr); Thanks Deepak
On Mon, Jun 15, 2009 at 5:43 PM, Assaf Lavie <assafla...@gmail.com> wrote: > What format pattern are you using? > > > On Mon, Jun 15, 2009 at 3:11 PM, deepak singh <deepak.i...@gmail.com>wrote: > >> Hi, >> I am using NDC (*nested diagnostic contexts*) for appending the text >> from a specific thread. >> Using floowing code: >> >> ------------------------- >> //In side the run method of that thread >> log4cxx::NDC::push("Thread specific Info"); >> >> printing some log4cxx messages....... >> >> //Just before exiting the thread >> log4cxx::NDC::pop(); >> ------------------------------- >> >> But the issue is I am not able to get the "Thread specific Info" message >> in any of the messages I am printing in that thread. >> I am using log4cxx 0.10.0 version. >> Please let me know if you have any idea. >> >> Thanks >> Deepak >> >> > >