---
name: "iscsi_context_log_priority_set"
section: "3"
platform: "linux"
package: "open-iscsi"
version: "2.1.13-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/iscsi_context_log_priority_set"
---

# iscsi\_context\_log\_priority\_set(3)

Set log priority.

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

- ctx

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

- priority

  int, log priority.

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

void
