---
name: "loc_set_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_set_log_priority"
---

# loc\_set\_log\_priority(3)

Sets the log level of a libloc context

## NAME

loc\_set\_log\_priority - Sets the log level of a libloc context

## SYNOPSIS

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

void loc\_set\_log\_priority(struct loc\_ctx\* ctx, int priority)

## DESCRIPTION

Sets the log priority of the given context. See [loc\_get\_log\_priority(3)](/loc_get_log_priority/3.md) for more details.

## SEE ALSO

[**libloc**(3)](/libloc/3.md) link:[loc\_set\_log\_fn(3)](/loc_set_log_fn/3.md)

## AUTHORS

Michael Tremer
