---
name: "gearman_worker_set_log_fn"
section: "3"
platform: "linux"
package: "gearmand"
version: "2.2.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/gearman_worker_set_log_fn"
---

# gearman\_worker\_set\_log\_fn(3)

Gearmand Documentation, https://gearman.org/gearmand/

## NAME

gearman\_worker\_set\_log\_fn - Gearmand Documentation, https://gearman.org/gearmand/

## 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)**

  ## DESCRIPTION

*gearman\_worker\_set\_log\_fn()* is similar to *gearman\_client\_set\_log\_fn()* but it used with workers, aka, *gearman\_worker\_st*. *gearman\_worker\_set\_log\_fn()* allows you to register a callback that will be passed all error messages that are givin to the worker.

See *gearman\_log\_fn* for a description of the callback.

See *gearman\_verbose\_t* for more information on logging levels.

## RETURN VALUE

None

## HOME

To find out more information please check: *https://gearman.org/gearmand/*

## SEE ALSO

**[gearmand(8)](/gearmand/8.md)** **[libgearman(3)](/libgearman/3.md)** **[gearman\_client\_set\_log\_fn(3)](/gearman_client_set_log_fn/3.md)** **gearman\_log\_fn**  **gearman\_verbose\_t**

## AUTHOR

Data Differential http://www.datadifferential.com/

## COPYRIGHT

2011-2014, Data Differential, http://www.datadifferential.com/
