1snmpa_error_logger(3)      Erlang Module Definition      snmpa_error_logger(3)
2
3
4

NAME

6       snmpa_error_logger  -  Functions  for Reporting SNMP Errors through the
7       error_logger
8

DESCRIPTION

10       The module snmpa_error_logger implements the snmpa_error_report  behav‐
11       iour  (see  snmpa_error_report) containing two callback functions which
12       are called in order to report SNMP errors.
13
14       This module provides a simple  mechanism  for  reporting  SNMP  errors.
15       Errors  are  sent  to the error_logger after a size check. Messages are
16       truncated after 1024 chars. It is provided as an example.
17
18       This module is the default error report module, but can  be  explicitly
19       configured, see snmpa_error and configuration parameters.
20

EXPORTS

22       config_err(Format, Args) -> void()
23
24              Types:
25
26                 Format = string()
27                 Args = list()
28
29              The  function is called if an error occurs during the configura‐
30              tion phase, for example if a syntax error is found in a configu‐
31              ration file.
32
33              Format and Args are as in io:format(Format, Args).
34
35       user_err(Format, Args) -> void()
36
37              Types:
38
39                 Format = string()
40                 Args = list()
41
42              The  function  is  called if a user related error occurs at run-
43              time, for example if a  user  defined  instrumentation  function
44              returns erroneous.
45
46              Format and Args are as in io:format(Format, Args).
47

SEE ALSO

49       error_logger(3)
50
51
52
53Ericsson AB                       snmp 5.4.3             snmpa_error_logger(3)
Impressum