snmpa_error_logger(3erl)

πŸ“¦
version 25.3.2.8 Β· 4 versions
, in ubuntu noble

🌸 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 πŸ¦‹


mwah πŸ’‹ β€” Ericsson AB, snmp 5.13.5, snmpa_error_logger(3erl). that's the sign-off, and she ate. πŸŽ€

πŸ“¦ where this page comes from