snmpa_error_logger(3erl)
πΈ NAME πΈ
okay bestie, welcome to the manual page for snmpa_error_logger(3erl) β an Erlang Module Definition β and she's literally about functions for reporting SNMP errors through the error_logger. that's the name and the whole assignment, periodt. π
β¨ DESCRIPTION β¨
so the module snmpa_error_logger implements the snmpa_error_report behaviour (peep snmpa_error_report for that one) and it's got two callback functions that are called in order to report SNMP errors. two. iconic. π«Ά
this module provides a simple mechanism for reporting SNMP errors: errors get sent to the error_logger after a size check, and messages are truncated after 1024 chars. not me being dramatic, that's the actual cutoff π.
vibe check: it's provided as an example β like a starter fit for error reporting. it's also the default error report module, but you can explicitly configure it (see snmpa_error and configuration parameters). no cap. β¨
π EXPORTS π
here's the callback roster, bestie β slay:
config_err(Format, Args) -> void()
Types:
Format = string()Args = list()
this one gets called if an error pops off during the configuration phase β for example, if a syntax error is found in a configuration file. yep, config drama π .
Format and Args are as in io:format(Format, Args). exactly.
user_err(Format, Args) -> void()
Types:
Format = string()Args = list()
this one gets called if a user related error happens at run-time β for example, if a user defined instrumentation function returns erroneous. (yes, "erroneous" is the word, leave it πΈ.)
Format and Args are as in io:format(Format, Args). same energy, same args.
π¦ SEE ALSO π¦
error_logger(3erl)β go read that too, bestie. iykyk. π₯
mwah π β Ericsson AB, snmp 5.13.5, snmpa_error_logger(3erl). that's the sign-off, and she ate. π
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms