Environment Variables

The following table lists the environment variables of MindIE SD.

Table 1 Environment variables

Environment Variables Description Configuration Method Default Value
MINDIE_LOG_LEVEL MindIE SD log level. The log level can be set to critical, error, warn, info, debug, and null. When the log level is set to null, logging is disabled.
You can directly run export MINDIE_LOG_LEVEL="sd:debug" to set the log level, where sd: indicates the specified SD component. Alternatively, you can run export MINDIE_LOG_LEVEL="debug".
info
MINDIE_LOG_TO_STDOUT Whether to print MindIE SD logs. The value can be true or false, or 1 or 0. true or 1 indicates that log printing is enabled. false or 0 indicates that log printing is disabled.
You can directly run export MINDIE_LOG_TO_STDOUT="sd:true" to enable log printing, where sd: indicates the specified SD component. Alternatively, you can run export MINDIE_LOG_TO_STDOUT="true".
true
MINDIE_LOG_TO_FILE Whether to flush MindIE SD log files to drives. The value can be true or false, or 1 or 0. true or 1 indicates that log printing is enabled. false or 0 indicates that log printing is disabled.
You can directly run export MINDIE_LOG_TO_FILE="sd:true" to flush log files to drives, where sd: indicates the specified SD component. Alternatively, you can run export MINDIE_LOG_TO_FILE="true".
true
MINDIE_LOG_PATH Path for storing MindIE SD log files. You can specify the log flush path. The default path is ~/mindie/log/. Run logs are saved to the debug folder in the specified path.
If you enter a relative path, for example, ./custom_log, log files will be written to ~/mindie/log/custom_log. If you enter an absolute path, for example, /home/usr/custom_log, log files will be written to /home/usr/custom_log.
You can directly run export MINDIE_LOG_PATH="sd:./custom_log" to specify a path for storing log files, where sd: indicates the specified SD component. Alternatively, you can directly run export MINDIE_LOG_PATH="./custom_log".
~/mindie/log/
MINDIE_LOG_ROTATE MindIE SD rotation configuration. -s: rotation period. The value is a positive integer, in the unit of ["daily", "weekly", "monthly", "yearly"]. For example, -s 100 in the "daily" unit indicates that the rotation period is 100 days.
-fs: maximum log file size. The value is an integer, in MB. For example, -fs 20 indicates that the maximum size of a single log file is 20 MB.
fc: maximum number of log files. The value is an integer. For example, -fc 10 indicates that the maximum number of log files is 10.
The preceding parameters can be configured at the same time, for example, export MINDIE_LOG_ROTATE="-s 10 -fs 20 -r 10.
-s 30 -fs 20 -r 10
MINDIE_LOG_VERBOSE Whether to print optional information in MindIE SD logs. The value can be true or false, or 1 or 0. true or 1 indicates that log printing is enabled. false or 0 indicates that log printing is disabled.
You can directly run export MINDIE_LOG_VERBOSE="sd:true" to print optional information, where sd: indicates the specified SD component. Alternatively, you can run export MINDIE_LOG_VERBOSE="true".
true