Changes between Version 1 and Version 3 of Ticket #981


Ignore:
Timestamp:
Nov 9, 2009 4:05:54 AM (10 years ago)
Author:
bennylp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #981

    • Property Status changed from new to closed
    • Property Resolution changed from to fixed
    • Property Summary changed from New pj_perror() utility API to print error message to the log to New pj_perror() and PJ_PERROR() APIs to print error message to the log
  • Ticket #981 – Description

    v1 v3  
    11New API in <pj/errno.h>: 
    22 
     3PJ_PERROR usage: 
     4 
    35 {{{ 
    4 PJ_DECL(void) pj_perror(int log_level, const char *sender,  
    5                         pj_status_t status, const char *title, 
    6                         int options); 
     6   PJ_PERROR(2, (__FILE__, PJ_EBUSY, "Error making %s", "coffee")); 
    77 }}} 
     8 
     9pj_perror() API: 
     10 {{{ 
     11   PJ_DECL(void) pj_perror(int log_level, const char *sender,  
     12                           pj_status_t status, 
     13                           const char *title_fmt, ...); 
     14 }}}