---
name: "snmpa_error_logger"
section: "3erl"
platform: "linux"
package: "erlang-manpages"
version: "1:25.2.3+dfsg-1+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/snmpa_error_logger"
---

# snmpa\_error\_logger(3erl)

Functions for Reporting SNMP Errors through the error\_logger

## NAME

snmpa\_error\_logger - Functions for Reporting SNMP Errors through the error\_logger

## DESCRIPTION

The module *snmpa\_error\_logger* implements the *snmpa\_error\_report* behaviour (see snmpa\_error\_report) containing two callback functions which are called in order to report SNMP errors.

This module provides a simple mechanism for reporting SNMP errors. Errors are sent to the *error\_logger* after a size check. Messages are truncated after 1024 chars. It is provided as an example.

This module is the default error report module, but can be explicitly configured, see snmpa\_error and configuration parameters.

## EXPORTS

**config\_err(Format, Args) -\> void()**\

Types:

Format = string()\
 Args = list()\

The function is called if an error occurs during the configuration phase, for example if a syntax error is found in a configuration file.

*Format* and *Args* are as in *io:format(Format, Args)*.

**user\_err(Format, Args) -\> void()**\

Types:

Format = string()\
 Args = list()\

The function is called if a user related error occurs at run-time, for example if a user defined instrumentation function returns erroneous.

*Format* and *Args* are as in *io:format(Format, Args)*.

## SEE ALSO

[error\_logger(3erl)](/error_logger/3erl.md)
