Chaincode Logging
Needless to say, logging is an important part of any software development. Logs can provide a huge piece of information about code behavior to developers or simple users of an application. The chaincode is not an exception in this case.
All messages printed to stdout or stderr by any logging utilities can be viewed in the corresponding Docker container.
docker logs <container_name>
There are no restrictions on chaincode logging, so you can use any preferred npm package or simply stick to the default console object approach.
In this course, we will not utilize any logger. This provides an opportunity for you to experiment with any logging utility on your own.
Last updated
Was this helpful?