|
Veethree D7 SDK
|
Configurable logging system.
Namespaces | |
| namespace | vsdk |
| Any entities that belong to the Veethree SDK libraries. | |
Classes | |
| class | vsdk::diag::log |
| logging with module-based filtering More... | |
Enumerations | |
| enum class | module : uint8_t { module::pwm_in , module::pwm_out , module::digital_in , module::digital_out , module::analog , module::system , module::network , module::comms , module::ct2klib , module::max } |
| Enumeration of available logging modules. More... | |
Configurable logging system.
The logging system is configured through /app/config/vsdk_log.json file (JSON format). Below is the format with explanations of each field:
The pattern format follows spdlog conventions https://internal.dunescience.org/doxygen/classspdlog_1_1pattern__formatter.html
The following log levels are supported (from lowest to highest):
Messages at the configured level and higher will be logged.
The log file is located in /appdata/logs/vsdk.log
to disable file logging, just delete the "log_file" field from the configuration file.
Module names in the configuration must match the module enum values:
to disable logging for a module, remove it from the list of enabled modules.
The logging system provides macros for different log levels. Each macro requires a module parameter and supports fmt-style formatting:
|
strong |
Enumeration of available logging modules.