logging: add SDLOG_MODE = -1 to disable logging completely

This commit is contained in:
Beat Küng
2019-03-20 11:03:02 +01:00
parent a08b1682e3
commit 14ef009aab
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -24,4 +24,8 @@ then
set LOGGER_ARGS "-f" set LOGGER_ARGS "-f"
fi fi
logger start -b ${LOGGER_BUF} -t ${LOGGER_ARGS} if ! param compare SDLOG_MODE -1
then
logger start -b ${LOGGER_BUF} -t ${LOGGER_ARGS}
fi
+1
View File
@@ -55,6 +55,7 @@ PARAM_DEFINE_INT32(SDLOG_UTC_OFFSET, 0);
* Determines when to start and stop logging. By default, logging is started * Determines when to start and stop logging. By default, logging is started
* when arming the system, and stopped when disarming. * when arming the system, and stopped when disarming.
* *
* @value -1 disabled
* @value 0 when armed until disarm (default) * @value 0 when armed until disarm (default)
* @value 1 from boot until disarm * @value 1 from boot until disarm
* @value 2 from boot until shutdown * @value 2 from boot until shutdown