Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#981 closed enhancement (fixed)

New pj_perror() and PJ_PERROR() APIs to print error message to the log — at Version 3

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 (3)

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

Done in r2965

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
Note: See TracTickets for help on using tickets.