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 --> PJLIB Reference

log.h File Reference

Logging Utility. More...

Go to the source code of this file.

Defines

#define PJ_LOG(level, arg)
#define pj_log_wrapper_1(arg)   pj_log_1 arg
#define pj_log_wrapper_2(arg)   pj_log_2 arg
#define pj_log_wrapper_3(arg)   pj_log_3 arg
#define pj_log_wrapper_4(arg)   pj_log_4 arg
#define pj_log_wrapper_5(arg)
#define pj_log_wrapper_6(arg)

Typedefs

typedef void pj_log_func (int level, const char *data, int len)

Enumerations

enum  pj_log_decoration {
  PJ_LOG_HAS_DAY_NAME = 1, PJ_LOG_HAS_YEAR = 2, PJ_LOG_HAS_MONTH = 4, PJ_LOG_HAS_DAY_OF_MON = 8,
  PJ_LOG_HAS_TIME = 16, PJ_LOG_HAS_MICRO_SEC = 32, PJ_LOG_HAS_SENDER = 64, PJ_LOG_HAS_NEWLINE = 128,
  PJ_LOG_HAS_CR = 256, PJ_LOG_HAS_SPACE = 512, PJ_LOG_HAS_COLOR = 1024, PJ_LOG_HAS_LEVEL_TEXT = 2048,
  PJ_LOG_HAS_THREAD_ID = 4096
}

Functions

void pj_log_write (int level, const char *buffer, int len)
void pj_log (const char *sender, int level, const char *format, va_list marker)
void pj_log_set_log_func (pj_log_func *func)
pj_log_funcpj_log_get_log_func (void)
void pj_log_set_level (int level)
int pj_log_get_level (void)
void pj_log_set_decor (unsigned decor)
unsigned pj_log_get_decor (void)
void pj_log_set_color (int level, pj_color_t color)
pj_color_t pj_log_get_color (int level)
pj_status_t pj_log_init (void)
void pj_log_1 (const char *src, const char *format,...)
void pj_log_2 (const char *src, const char *format,...)
void pj_log_3 (const char *src, const char *format,...)
void pj_log_4 (const char *src, const char *format,...)

Detailed Description

Logging Utility.


Define Documentation

#define pj_log_wrapper_1 ( arg   )     pj_log_1 arg

Internal function to write log with verbosity 1. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 1.

Parameters:
arg Log expression.
#define pj_log_wrapper_2 ( arg   )     pj_log_2 arg

Internal function to write log with verbosity 2. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 2.

Parameters:
arg Log expression.
#define pj_log_wrapper_3 ( arg   )     pj_log_3 arg

Internal function to write log with verbosity 3. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 3.

Parameters:
arg Log expression.
#define pj_log_wrapper_4 ( arg   )     pj_log_4 arg

Internal function to write log with verbosity 4. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 4.

Parameters:
arg Log expression.
#define pj_log_wrapper_5 ( arg   ) 

Internal function to write log with verbosity 5. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 5.

Parameters:
arg Log expression.
#define pj_log_wrapper_6 ( arg   ) 

Internal function to write log with verbosity 6. Will evaluate to empty expression if PJ_LOG_MAX_LEVEL is below 6.

Parameters:
arg Log expression.

Function Documentation

void pj_log_1 ( const char *  src,
const char *  format,
  ... 
)

Internal function.

void pj_log_2 ( const char *  src,
const char *  format,
  ... 
)

Internal function.

void pj_log_3 ( const char *  src,
const char *  format,
  ... 
)

Internal function.

void pj_log_4 ( const char *  src,
const char *  format,
  ... 
)

Internal function.

 


PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.