iscsi\_context\_log\_priority\_set(3) API Manual iscsi\_context\_log\_priority\_set(3)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

# [ARGUMENTS](#ARGUMENTS)

[ctx](#ctx)

Pointer of 'struct iscsi\_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:

\* LIBISCSI\_LOG\_PRIORITY\_ERROR -- 3

\* LIBISCSI\_LOG\_PRIORITY\_WARNING -- 4

\* LIBISCSI\_LOG\_PRIORITY\_INFO -- 6

\* LIBISCSI\_LOG\_PRIORITY\_DEBUG -- 7

# [RETURN](#RETURN)

void

iscsi\_context\_log\_priority\_set October 2026

---

Document: iscsi_context_log_priority_set(3) from open-iscsi 2.1.13-r3 (Chainguard OS)
Source: https://github.com/open-iscsi/open-iscsi
