snmpa_error_logger(3)
π snmpa_error_logger(3) β Erlang Module Definition π
okay bestie, welcome to snmpa_error_logger, the little module that catches your SNMP oopsies and drops them straight into the error_logger π«Ά (this is the page for the Erlang module definition, iykyk).
β¨ NAME β¨
snmpa_error_logger β functions for reporting SNMP errors through the error_logger π
πΈ DESCRIPTION πΈ
So. The module snmpa_error_logger implements the snmpa_error_report behaviour β go peek at snmpa_error_report if you want the receipts. It contains two callback functions that get called when it's time to report SNMP errors. Two. That's the whole vibe. π
This module is the simple mechanism for reporting SNMP errors, no cap. Errors get sent to the error_logger, but after a size check β because we are not letting a novel through. Messages are truncated after 1024 chars, periodt. And ngl, it's provided as an example π
It's also the default error report module, bestie. But you can absolutely configure it explicitly if you want β see snmpa_error and the configuration parameters for the deets. π
π¦ See Also π¦
π FUNCTIONS π
config_err(Format, Args) -> snmp:void()
config_err(Format, Args) -> snmp:void()
when Format :: string(), Args :: list().
This one gets called when an error happens during the configuration phase β like, say, a syntax error just chilling in a configuration file π.
Format and Args work exactly as in io:format(Format, Args). Iconic, consistent, we love that for us β¨
user_err(Format, Args) -> snmp:void()
user_err(Format, Args) -> snmp:void()
when Format :: string(), Args :: list().
This baby gets called when a user related error happens at run-time β for example, if a user defined instrumentation function returns something erroneous π.
Format and Args are, once again, as in io:format(Format, Args). Same energy, different moment π
lowkey everything here is just "error happens β‘οΈ error_logger hears about it" and honestly? main character energy β¨
sign-off time π§π
This page came from Ericsson AB and it's part of snmp 5.20.5 β go off, version number π. That's the whole manpage, bestie, you ate it fr fr πππ¦
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms