Skip to content

MindSphere SDK for Node.js Logging

Introduction

Logging of the MindSphere 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

1
set DEBUG=*
1
$env:DEBUG=*
1
set DEBUG=mindsphere-sdk*
1
$env:DEBUG=mindsphere-sdk*
1
set DEBUG=mindsphere-sdk:{client_name}
1
$env:DEBUG=mindsphere-sdk:{client_name}

Note

Replace {client_name} by the service client name, for example:
set DEBUG=mindsphere-sdk:TimeSeriesClient

Disable Logging

1
set DEBUG=
1
$env:DEBUG=

Any questions left?

Ask the community


Except where otherwise noted, content on this site is licensed under the MindSphere Development License Agreement.