Update Aug 29th 2019: Hyperledger Composer has been deprecated. Please see the README for more information.

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);