Virgil IoT KIT
Macros
integration/platformio/include/config/platforms/esp32arduino/logger-config.h File Reference

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...
 

Detailed Description

Logger settings.

This file provides defines that set up logger behavior.

Macro Definition Documentation

◆ VS_IOT_LOGGER_ENABLE

#define VS_IOT_LOGGER_ENABLE   1

Enable logger.

Enables logger library. Logger macroses will be empty if it is disabled.

◆ VS_IOT_LOGGER_EOL

#define VS_IOT_LOGGER_EOL   "\n"

End-of-line string.

ASCIIZ string placed at the end of the output string. Normally this is "\n".

◆ VS_IOT_LOGGER_FUNCTION

#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

◆ VS_IOT_LOGGER_MAX_BUFFER_SIZE

#define VS_IOT_LOGGER_MAX_BUFFER_SIZE   1024

Maximum buffer size.

Defines maximum internal char buffer for output purposes.

◆ VS_IOT_LOGGER_OUTPUT_TIME

#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.

◆ VS_IOT_LOGGER_USE_LIBRARY

#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.

◆ VS_IOT_LOGGER_USE_STATIC_BUFFER

#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.