gearman_client_set_log_fn.rst 1000 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ===============
  2. Logging Workers
  3. ===============
  4. --------
  5. SYNOPSIS
  6. --------
  7. #include <libgearman/gearman.h>
  8. .. c:function:: void gearman_client_set_log_fn(gearman_worker_st *worker, gearman_log_fn *function, void *context, gearman_verbose_t verbose)
  9. -----------
  10. DESCRIPTION
  11. -----------
  12. :c:func:`gearman_client_set_log_fn` is similar to :c:func:`gearman_worker_set_log_fn` but it used with clients, aka, :c:type:`gearman_client_st`.
  13. :c:func:`gearman_client_set_log_fn` allows you to register a callback that will be passed all error messages that are givin to the client.
  14. See :c:type:`gearman_log_fn` for more information on the callback.
  15. See :c:type:`gearman_verbose_t` for more information on logging levels.
  16. ------------
  17. RETURN VALUE
  18. ------------
  19. None
  20. ----
  21. HOME
  22. ----
  23. To find out more information please check:
  24. `https://gearman.org/gearmand/ <https://gearman.org/gearmand/>`_
  25. --------
  26. SEE ALSO
  27. --------
  28. :manpage:`gearmand(8)` :manpage:`libgearman(3)` :manpage:`gearman_log_fn(3)`