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.

composer network loglevel -c admin@tutorial-network

Options

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

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

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

NetworkLogLevel.handler(options);