The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Terms of Use and Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content
Insights Hub and Industrial IoT

Insights Hub drives smart manufacturing through the industrial Internet of Things. Gain actionable insights with asset and operational data and improve your processes.

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=*
set DEBUG=mindsphere-sdk*
$env:DEBUG=mindsphere-sdk*
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=