Logging
Debugging/logging functions. More...
Modules |
|
Macros | |
Macros related to logging.
|
|
Functions |
|
void | gos_log (const char *fmt,...) |
Print formatted string to the log bus.
More...
|
|
void | gos_vlog (const char *fmt, va_list args) |
Print formatted string with variable arguments to the log bus.
More...
|
|
void | gos_write_log (const char *buffer, size_t buffer_len) |
Print string buffer to the log bus.
More...
|
|
void | gos_dump_buffer (const void *buffer, uint32_t length, const char *msg, gos_dump_flags_t flags) |
Dump a buffer to the log bus with specified formatting.
More...
|
|
Detailed Description
Debugging/logging functions.
Function Documentation
◆ gos_dump_buffer()
void gos_dump_buffer | ( | const void * |
buffer,
|
uint32_t |
length,
|
||
const char * |
msg,
|
||
gos_dump_flags_t |
flags
|
||
) |
Dump a buffer to the log bus with specified formatting.
- Parameters
-
buffer
Buffer to dump length
Length of buffer in bytes msg
Message to print with dump flags
Formatting of dump, see gos_dump_flags_t
◆ gos_log()
void gos_log | ( | const char * |
fmt,
|
...
|
|||
) |
Print formatted string to the log bus.
- Parameters
-
[in] fmt
printf format string
◆ gos_vlog()
void gos_vlog | ( | const char * |
fmt,
|
va_list |
args
|
||
) |
Print formatted string with variable arguments to the log bus.
- Parameters
-
[in] fmt
printf format string [in] args
Variable argument list
- Examples:
- demo/uart_blaster/uart_blaster.c .
◆ gos_write_log()
void gos_write_log | ( | const char * |
buffer,
|
size_t |
buffer_len
|
||
) |
Print string buffer to the log bus.
- Note
- The supplied buffer does NOT need to be a null-terminated.
- Parameters
-
[in] buffer
Buffer containing string to print to log bus [in] buffer_len
Length of string buffer in bytes
- Examples:
- cloud/coap_demo/main.c , cloud/mqtt_demo/main.c , demo/secure_element/main.c , hurricane/gps/main.c , network/softap_tcp_server/main.c , network/tcp_client/main.c , network/udp_client/main.c , network/websocket_client/main.c , network/websocket_server/main.c , and utility/json_parser/parse_all_examples.c .