On Thu, Aug 5, 2010 at 3:04 AM, Dean Elwood <dean.elwood at gmail.com> wrote: > Hi there, > > I'm using simple_pjsua as a basis for a NAGIOS SIP plugin. > > When pjsua_create() I get a load of console output that I don't want (my console output needs to be specific to NAGIOS), such as:- > > ?20:03:49.969 os_core_unix.c ?pjlib 1.6 for POSIX initialized > ?20:03:49.973 sip_endpoint.c ?Creating endpoint instance... > ?20:03:49.973 ? ? ? ? ?pjlib ?select() I/O Queue created (0x7a2ff0) > ?20:03:49.973 sip_endpoint.c ?Module "mod-msg-print" registered > ?20:03:49.973 sip_transport. ?Transport manager created. > > I'd like to silence this output from create(). > > Looking at the docs I can set the log_level, but only on the call to pjsua_init(), which has to be called after create() of course. > > Any ideas how I can remove this command line output from pjsua_create() ? > Use the PJLIB log.h API directly to manipulate the logging behavior prior to pjsua_create(). -benny