14.4.3 Enable Logs for MicroTx Node.js Library
By default, logging is enabled for the MicroTx Coordinator and Java applications that use the MicroTx client library. However, for Node.js applications that use the MicroTx client libraries, you must enable logging.
In the
tmm.properties
file, where you have provided values to configure the MicroTx library, specify values for the following properties to enable logging for the Node.js application:
You can also provide these configuration values as environment variables. Note that if you specify values in both the tmm.properties
file as well as the environment variables, then the values set in the environment variables override the values in the properties file.
The following example provides sample values to configure the environment variables.
export ENABLE_DEBUG_LOGS=true
export ENABLE_LOG_TIMESTAMP=true
Note that the environment variables names are case-sensitive.
Parent topic: Logs