kdriveExpress SDK 22.1.1
|
Functions | |
kdriveExpress_API void | kdrive_logger_set_level (uint8_t level) |
Sets the root logger level This is once of: More... | |
kdriveExpress_API void | kdrive_logger_console (void) |
Sets the logger to write to the console. More... | |
kdriveExpress_API void | kdrive_logger_file (void) |
Set the logger to write to a file The file is written to the current path as logfile_pid where pid is the process id. More... | |
kdriveExpress_API void | kdrive_logger_file_ex (const char *filename) |
Set the logger to write to a specified file. More... | |
kdriveExpress_API void | kdrive_logger_syslog (const char *address, const char *name) |
Set the logger to write to a remote host with the syslog protocol. More... | |
kdriveExpress_API void | kdrive_logger_set_callback (kdrive_logger_callback c) |
Set the logger to call a user callback function. More... | |
kdriveExpress_API void | kdrive_logger (uint8_t level, const char *message) |
Writes to the kdrive express logger. More... | |
kdriveExpress_API void | kdrive_logger_ex (uint8_t level, const char *fmt,...) |
Writes to the kdrive express logger. More... | |
kdriveExpress_API void | kdrive_logger_dump (uint8_t level, const char *message, const void *buffer, uint32_t buffer_len) |
Logs the given message, followed by the data in buffer. More... | |
kdriveExpress_API void kdrive_logger | ( | uint8_t | level, |
const char * | message | ||
) |
Writes to the kdrive express logger.
[in] | level | the logger level |
[in] | message | the log message |
kdriveExpress_API void kdrive_logger_console | ( | void | ) |
Sets the logger to write to the console.
kdriveExpress_API void kdrive_logger_dump | ( | uint8_t | level, |
const char * | message, | ||
const void * | buffer, | ||
uint32_t | buffer_len | ||
) |
Logs the given message, followed by the data in buffer.
The data in buffer is written in canonical hex+ASCII form: Offset (4 bytes) in hexadecimal, followed by sixteen space-separated, two column, hexadecimal bytes, followed by the same sixteen bytes as ASCII characters. For bytes outside the range 32 .. 127, a dot is printed.
[in] | level | the logger level |
[in] | message | the log message |
[in] | buffer | the data array |
[in] | buffer_len | the buffer length |
kdriveExpress_API void kdrive_logger_ex | ( | uint8_t | level, |
const char * | fmt, | ||
... | |||
) |
Writes to the kdrive express logger.
[in] | level | the logger level |
[in] | fmt | the log message with format |
kdriveExpress_API void kdrive_logger_file | ( | void | ) |
Set the logger to write to a file The file is written to the current path as logfile_pid where pid is the process id.
kdriveExpress_API void kdrive_logger_file_ex | ( | const char * | filename | ) |
Set the logger to write to a specified file.
[in] | filename | the logger filename |
kdriveExpress_API void kdrive_logger_set_callback | ( | kdrive_logger_callback | c | ) |
Set the logger to call a user callback function.
[in] | c | the logger callback pointer to function |
kdriveExpress_API void kdrive_logger_set_level | ( | uint8_t | level | ) |
Sets the root logger level This is once of:
[in] | level | the logger level |
kdriveExpress_API void kdrive_logger_syslog | ( | const char * | address, |
const char * | name | ||
) |
Set the logger to write to a remote host with the syslog protocol.
[in] | address | the remote host either as IP or IP:PORT |
[in] | name | the target name |