#981 closed enhancement (fixed)
New pj_perror() and PJ_PERROR() APIs to print error message to the log
Reported by: | bennylp | Owned by: | bennylp |
---|---|---|---|
Priority: | normal | Milestone: | release-1.5 |
Component: | pjlib | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: |
Description (last modified by bennylp)
New API in <pj/errno.h>:
PJ_PERROR usage:
PJ_PERROR(2, (__FILE__, PJ_EBUSY, "Error making %s", "coffee"));
pj_perror() API:
PJ_DECL(void) pj_perror(int log_level, const char *sender, pj_status_t status, const char *title_fmt, ...);
Change History (4)
comment:1 Changed 15 years ago by bennylp
- Description modified (diff)
comment:2 Changed 15 years ago by bennylp
- Resolution set to fixed
- Status changed from new to closed
comment:3 Changed 15 years ago by bennylp
- Description modified (diff)
- 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
comment:4 Changed 15 years ago by bennylp
In r2992:
- added PJ_PERROR() macro to allow omitting the code during compile time
- changed pj_perror() API to allow formatting of the title using printf like format
- added a simple test in pjlib-test
- updated Doxygen documentation
Note: See
TracTickets for help on using
tickets.
Done in r2965