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 value pthread_t represents, int value or pointer value

  • %t - prints alternative thread id; linux, prints value returned syscall (sys_gettid)

there room improvement.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -