Blockchain Development with Hyperledger
上QQ阅读APP看书,第一时间看更新

SHIM logging levels

The chaincode can also directly control the logging severity level of its SHIM by using the API function SetLoggingLevel as follows:

logLevel, _ := shim.LogLevel(os.Getenv("TW_SHIM_LOGGING_LEVEL"))
shim.SetLoggingLevel(logLevel)