Menu

#10 Add ability to output log with custom functions (for sxhub_t)

0.4.3
closed
nobody
2016-05-23
2016-02-24
No

Add ability to output logs (warnings and error messages) with a custom functions.
It should be done for sxhub_t i.e.

sxhub_set_logops(sxhub_t *, int (*log)(sxlogtype_t, fmt, ...));

typedef enum {
  SXCRITICAL_LOG = 0,
  SXERROR_LOG,
  SXWARNING_LOG,
  SXINFO_LOG,
  SXDEBUG_LOG,
} sxlogtype_t;

Find the places with frpintf(stderr, and change it.

Discussion

  • Alexander Vdolainen

    https://sourceforge.net/u/leonid-ed/ done this.
    many thanks,

     

    Last edit: Alexander Vdolainen 2016-05-23
  • Leonid Edrenkin

    Leonid Edrenkin - 2016-05-23

    I've made a merge request.

     
    • Alexander Vdolainen

      Many thanks!
      hope for the new requests :)

       
  • Alexander Vdolainen

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB