Changes between Version 4 and Version 5 of Ticket #1372


Ignore:
Timestamp:
Sep 18, 2011 11:37:16 PM (13 years ago)
Author:
bennylp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1372 – Description

    v4 v5  
    2222Use {{{pj_log_push_indent()}}} and {{{pj_log_pop_indent()}}} to use this new feature. The {{{PJ_LOG_HAS_INDENT}}} must be set in the log decoration flag (it is set by default by PJSUA-LIB). 
    2323 
    24 Also two new macros to customize the behavior: PJ_LOG_INDENT_SIZE, and PJ_LOG_INDENT_CHAR. 
     24The indentation is applied on per thread basis. 
     25 
     26The complete features introduced by this ticket are: 
     27 - new functions: pj_log_add_indent(int), pj_log_push_indent(), pj_log_pop_indent() 
     28 - new log decor: PJ_LOG_HAS_INDENT 
     29 - new macros: PJ_LOG_ENABLE_INDENT (1), PJ_LOG_INDENT_SIZE (1), PJ_LOG_INDENT_CHAR ('.') 
     30 
    2531 
    2632Sample code: