---
name: "sasl_log_t"
section: "3"
platform: "macos"
package: "passwordserver_sasl"
version: "215"
release: "macOS 26.5"
platforms: ["linux", "macos"]
url: "https://new.carta.tech/sasl_log_t"
---

# sasl\_log\_t(3)

The SASL logging callback

## NAME

sasl\_log\_t - The SASL logging callback

## SYNOPSIS

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

int sasl_log_t(void *context,
		    int level,
		    const char * message);
```

## DESCRIPTION

**sasl\_log\_t** is used to log warning/error messages from the SASL library. If not specified syslog will be used.

## RETURN VALUE

SASL callback functions should return SASL return codes. See sasl.h for a complete list. SASL\_OK indicates success.

## CONFORMING TO

RFC 4422

## SEE ALSO

[sasl(3)](/sasl/3.md), [sasl\_callbacks(3)](/sasl_callbacks/3.md), [sasl\_errors(3)](/sasl_errors/3.md)
