dmmp\_context\_log\_priority\_set(3) Device Mapper Multipath API - libdmmp Manual dmmp\_context\_log\_priority\_set(3)

# [NAME](#NAME)

dmmp\_context\_log\_priority\_set - Set log priority.

# [SYNOPSIS](#SYNOPSIS)

**void dmmp\_context\_log\_priority\_set** **(struct dmmp\_context \*ctx,** **int priority);**

# [ARGUMENTS](#ARGUMENTS)

[ctx](#ctx)

Pointer of 'struct dmmp\_context'. If this pointer is NULL, your program will be terminated by assert.

[priority](#priority)

int, log priority.

# [DESCRIPTION](#DESCRIPTION)

When library generates log message, only equal or more important(less value) message will be forwarded to log handler function. Valid log priority values are:

\* DMMP\_LOG\_PRIORITY\_ERROR -- 3

\* DMMP\_LOG\_PRIORITY\_WARNING -- 4

\* DMMP\_LOG\_PRIORITY\_INFO -- 5

\* DMMP\_LOG\_PRIORITY\_DEBUG -- 7

# [RETURN](#RETURN)

void

dmmp\_context\_log\_priority\_set June 2025

---

Document: dmmp_context_log_priority_set(3) from multipath-tools 0.15.1-r0 (Chainguard OS)
Source: https://github.com/opensvc/multipath-tools
