Is_debug_level – Compaq AAR04BCTE User Manual

Page 116

Advertising
background image

eSNMP API Routines
is_debug_level

is_debug_level

Tests the logging level to see whether the specified logging level is set. You can
test the logging levels as follows:

Level

Meaning

ERROR

Used when a bad error occurs, requiring restart.

WARNING

Used when a packet cannot be handled; this also implies
ERROR.

TRACE

Used when tracing all packets; this also implies ERROR
and WARNING.

Format

int is_debug_level ( int type );

Return Values

TRUE

The requested level is set and the ESNMP_LOG
will generate output, or output will go to the
specified destination.

FALSE

The logging level is not set.

Example

#include <esnmp.h>

if (is_debug_level(TRACE))

dump_packet();

5–58 eSNMP API Routines

Advertising