c++ - how is the thread name set in log4cplus? -
i'm evaluating log4cplus multi threaded c++ application on linux. ttcclayout , patternlayout allow thread name displayed. in tests there never name meaningless number. i'm not using thread class of log4cplus. how log4cplus determine thread name , possible set myself?
log4cplus (as of version 1.1.1 or earlier) not have patternlayout formatter thread names. has 2 thread related formatters:
%t- prints thread id; *nix, whatever valuepthread_trepresents,intvalue or pointer value%t- prints alternative thread id; linux, prints value returnedsyscall (sys_gettid)
there room improvement.
Comments
Post a Comment