GEARMAN_WORKER_SET_LOG_FN(3)
β¨ NAME β¨
gearman_worker_set_log_fn β Gearmand Documentation, <http://gearman.info/> π
okay bestie, quick vibe check: this whole page lives inside the Gearmand manual, and it's about one tiny-but-mighty function. let's get into it π«Ά
πΈ SYNOPSIS πΈ
#include <libgearman/gearman.h>
void gearman_worker_set_log_fn(gearman_worker_st *worker,
gearman_log_fn *function,
void *context,
gearman_verbose_t verbose)
like yes, that's the whole flex. worker, function, context, verbose β four little guys and you're done π
π¦ DESCRIPTION π¦
so gearman_worker_set_log_fn() is basically the worker-flavored twin of gearman_client_set_log_fn() β same energy, but it's used with workers, aka gearman_worker_st. literally siblings, no cap.
what it does? it lets you register a callback that will be passed all the error messages that are given to the worker. every single one. it's giving "put a little listener on your worker and it'll tell you everything" π
- want the deets on the callback itself? go peek at
gearman_log_fnβ it has the full description. - want the deets on logging levels? that's
gearman_verbose_t, it explains all the levels for you.
ngl this is the "turn the volume up on your worker's feelings" function π it doesn't do the logging for you, it just wires up who gets the messages.
π RETURN VALUE π
None.
yep. nothing. it returns void, it's not here to give you a value, it's here to set a thing and dip π
π HOME π
want more lore? go touch grass at the official spot:
β SEE ALSO β
the whole friend group, go say hi:
gearmand(8)libgearman(3)gearman_client_set_log_fn(3)gearman_log_fngearman_verbose_t
π Author π
Data Differential <http://www.datadifferential.com/>
π Copyright π
2011-2014, Data Differential, <http://www.datadifferential.com/>
and that's a wrap, bestie π this masterpiece was served to you by version 1.1.21+ds, dated Feb 04, 2026 β icon behavior, periodt π
β¨
π¦ where this page comes from
- ubuntu resolute: libgearman-dev 1.1.21+ds-1ubuntu3 Β· BSD-3-Clause
- ubuntu stonking: libgearman-dev 1.1.21+ds-1ubuntu3 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms