Industrial IoT SDK for Node.js Logging¶
Introduction¶
Logging of the Industrial IoT SDK for Node.js is implemented using the debug module. It provides flexibility to only output debug messages from specific parts of a module or the entire module.
Usage¶
The debug module uses the environment variable DEBUG
to enable or disable logging.
Enable Logging¶
set DEBUG=*
$env:DEBUG=*
Enable Industrial IoT SDK related Logging¶
set DEBUG=mindsphere-sdk*
$env:DEBUG=mindsphere-sdk*
Enable Client related Logging¶
set DEBUG=mindsphere-sdk:{client_name}
$env:DEBUG=mindsphere-sdk:{client_name}
Note
Replace {client_name}
by the service client name, for example:set DEBUG=mindsphere-sdk:TimeSeriesClient
Disable Logging¶
set DEBUG=
$env:DEBUG=