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

# loc\_get\_log\_priority(3)

Fetches the log level of a libloc context

## NAME

loc\_get\_log\_priority - Fetches the log level of a libloc context

## SYNOPSIS

```
#include <libloc/libloc.h>
```

int loc\_get\_log\_priority(struct loc\_ctx\* ctx);

## DESCRIPTION

Returns the log priority of the given context.

The returned integer is a valid syslog log level as defined in [syslog(3)](/syslog/3.md).

The default value is LOG\_ERR.

## SEE ALSO

[**libloc**(3)](/libloc/3.md)

## AUTHORS

Michael Tremer
