Go to the source code of this file.
§ COAP_DEBUG_FD
| #define COAP_DEBUG_FD stdout |
§ COAP_ERR_FD
| #define COAP_ERR_FD stderr |
§ coap_log
§ debug
§ info
§ warn
§ coap_log_t
Pre-defined log levels akin to what is used in syslog.
| Enumerator |
|---|
| LOG_EMERG | |
| LOG_ALERT | |
| LOG_CRIT | |
| LOG_ERR | |
| LOG_WARNING | |
| LOG_NOTICE | |
| LOG_INFO | |
| LOG_DEBUG | |
Definition at line 26 of file debug.h.
§ coap_get_log_level()
Returns the current log level.
Definition at line 60 of file debug.c.
§ coap_log_impl()
| void coap_log_impl |
( |
coap_log_t |
level, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
Writes the given text to COAP_ERR_FD (for level <= LOG_CRIT) or COAP_DEBUG_FD (for level >= LOG_WARNING).
The text is output only when level is below or equal to the log level that set by coap_set_log_level().
Definition at line 483 of file debug.c.
§ coap_package_name()
| const char* coap_package_name |
( |
void |
| ) |
|
Returns a zero-terminated string with the name of this library.
Definition at line 51 of file debug.c.
§ coap_package_version()
| const char* coap_package_version |
( |
void |
| ) |
|
Returns a zero-terminated string with the library version.
Definition at line 55 of file debug.c.
§ coap_print_addr()
| size_t coap_print_addr |
( |
const struct coap_address_t * |
, |
|
|
unsigned char * |
, |
|
|
size_t |
|
|
) |
| |
§ coap_set_log_level()
Sets the log level to the specified value.
Definition at line 65 of file debug.c.
§ coap_show_pdu()