I am using PJLIB 2.0.1, especially the memory pool, since it is said to be “very very fast”.
However, after the program starts, it automatically outputs “14:26:12.944 os_core_unix.c !pjlib 2.0.1 for POSIX initialized”, which is annoying.
I am not familiar with PJLIB… Can anyone advise how I can turn off such output? Thanks in advance.
You can specify the logging level by using
void pj_log_set_level(int level). If you want to turn it completely off, callpj_log_set_level(0);at the beginning of your code. Also, at compile time, you can define the logging level likes this:There are 6 levels you can set to,
6being the most verbose and0turning it off. For more info, see here. However, logging is nice for debugging code, so you might not want to turn it off.