Hyperledger Composer Network loglevel

Hyperledger Composer Network loglevel

The composer network loglevel command is used to return or define the log level of the composer runtime. If the newlevel option is specified it will change the current level to the specified value. If newlevel is not specified, this command will return the current logging level.

Copy
composer network loglevel -c admin@tutorial-network

Options

Copy
Options:
  --help          Show help  [boolean]
  -v, --version   Show version number  [boolean]
  --newlevel, -l  the new logging level  [choices: "INFO", "WARNING", "ERROR", "DEBUG"]
  --card, -c      The cardname to use to change the log level the network  [string]

Javascript API Example

Copy
const NetworkLogLevel = require('composer-cli').Network.LogLevel;

let options = {
  card: 'admin@tutorial-network'
};

NetworkLogLevel.handler(options);