pjsip logo pjsip.org
Open source SIP stack and media stack for presence, im/instant messaging, and multimedia communication
Loading

HOME

SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port

FAQ

Documentation

Licensing

Download

Development (Trac)

Projects using pjsip

Mailing List

Open Source Links


About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono
<bennylp@pjsip.org>


 

Home --> Documentations --> PJSIP Reference

pjsua_logging_config Struct Reference
[PJSUA-API Basic API]

#include <pjsua.h>

Data Fields

pj_bool_t msg_logging
unsigned level
unsigned console_level
unsigned decor
pj_str_t log_filename
unsigned log_file_flags
void(* cb )(int level, const char *data, int len)

Detailed Description

Logging configuration, which can be (optionally) specified when calling pjsua_init(). Application must call pjsua_logging_config_default() to initialize this structure with the default values.


Field Documentation

Log incoming and outgoing SIP message? Yes!

Input verbosity level. Value 5 is reasonable.

Verbosity level for console. Value 4 is reasonable.

Log decoration.

Additional flags to be given to pj_file_open() when opening the log file. By default, the flag is PJ_O_WRONLY. Application may set PJ_O_APPEND here so that logs are appended to existing file instead of overwriting it.

Default is 0.

void(* pjsua_logging_config::cb)(int level, const char *data, int len)

Optional callback function to be called to write log to application specific device. This function will be called for log messages on input verbosity level.


The documentation for this struct was generated from the following file:
  • pjsua-lib/pjsua.h

 


PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
Copyright (C) 2006-2008 Teluu Inc.