snmpa_error_logger(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

πŸ’– 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