#include "config.h"
#include "pdu.h"
Go to the source code of this file.
Macro Definition Documentation
| #define COAP_DEBUG_FD stdout |
| #define COAP_ERR_FD stderr |
Enumeration Type Documentation
Pre-defined log levels akin to what is used in syslog.
- Enumerator:
| LOG_EMERG |
|
| LOG_ALERT |
|
| LOG_CRIT |
|
| LOG_WARN |
|
| LOG_NOTICE |
|
| LOG_INFO |
|
| LOG_DEBUG |
|
Definition at line 23 of file debug.h.
Function Documentation
Returns the current log level.
Definition at line 41 of file debug.c.
| 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_WARN).
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 323 of file debug.c.
| size_t coap_print_addr |
( |
const struct __coap_address_t * |
, |
|
|
unsigned char * |
, |
|
|
size_t |
|
|
) |
| |
Sets the log level to the specified value.
Definition at line 46 of file debug.c.