Virgil IoT KIT
|
Logger settings. More...
Go to the source code of this file.
Macros | |
#define | VS_IOT_LOGGER_ENABLE 1 |
Enable logger. More... | |
#define | VS_IOT_LOGGER_MAX_BUFFER_SIZE 1024 |
Maximum buffer size. More... | |
#define | VS_IOT_LOGGER_USE_STATIC_BUFFER 0 |
Use static buffer. More... | |
#define | VS_IOT_LOGGER_USE_LIBRARY 1 |
Use logger library. More... | |
#define | VS_IOT_LOGGER_FUNCTION printf |
Function to directly output. More... | |
#define | VS_IOT_LOGGER_EOL "\n" |
End-of-line string. More... | |
#define | VS_IOT_LOGGER_OUTPUT_TIME 0 |
Output current time. More... | |
Logger settings.
This file provides defines that set up logger behavior.
#define VS_IOT_LOGGER_ENABLE 1 |
Enable logger.
Enables logger library. Logger macroses will be empty if it is disabled.
#define VS_IOT_LOGGER_EOL "\n" |
End-of-line string.
ASCIIZ string placed at the end of the output string. Normally this is "\n".
#define VS_IOT_LOGGER_FUNCTION printf |
Function to directly output.
Sends string directly to the printf-like function defined by this macros. Used when VS_IOT_LOGGER_USE_LIBRARY == 0
#define VS_IOT_LOGGER_MAX_BUFFER_SIZE 1024 |
Maximum buffer size.
Defines maximum internal char buffer for output purposes.
#define VS_IOT_LOGGER_OUTPUT_TIME 0 |
Output current time.
Enables current time output at the beginning of log string. Requires vs_logger_current_time_hal function implementation.
#define VS_IOT_LOGGER_USE_LIBRARY 1 |
Use logger library.
Enables logger library usage with logger level, file name and line number. If it is disabled, VS_IOT_LOGGER_FUNCTION function will be called.
#define VS_IOT_LOGGER_USE_STATIC_BUFFER 0 |
Use static buffer.
Enables static buffer usage instead of stack one. This can be done for single thread mode only.