HeexLog class
In both c++ and python we provide a HeexLog class, instantiated from the spdlog library. We recommend logging through this class since we have included builtin behaviors (like logging into specific files) that allow a smoother experience. To use it, you must first include it:logs
folder next to your executable, and creates a [executable_name].log
file inside it.
To log, use the following format:
[executable_name].log
, once this file reaches 20Mb, it creates a new file [executable_name]_0.log
and continues logging in there. Once that file reaches 20Mb, it creates a new one until 5 files are created like this. Once the 5th file reaches 20Mb, the logging clears the first file and logs into that one.
These default values can be changed by calling the following command:
- Enable or Disable the logging into a log file (only console logging):
- Set logging level:
Possible values are “default” (e.g. ‘info’), “trace”, “debug”, “info”, “warn”, “warning”, “error”, “critical”
All other strings given shall set to info.
- get and clear the active log file: