Search icon CANCEL
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On Blockchain with Hyperledger

You're reading from  Hands-On Blockchain with Hyperledger

Product type Book
Published in Jun 2018
Publisher Packt
ISBN-13 9781788994521
Pages 460 pages
Edition 1st Edition
Languages
Concepts
Authors (6):
Nitin Gaur Nitin Gaur
Profile icon Nitin Gaur
Luc Desrosiers Luc Desrosiers
Profile icon Luc Desrosiers
Venkatraman Ramakrishna Venkatraman Ramakrishna
Profile icon Venkatraman Ramakrishna
Petr Novotny Petr Novotny
Profile icon Petr Novotny
Salman A. Baset Salman A. Baset
Profile icon Salman A. Baset
Anthony O'Dowd Anthony O'Dowd
Profile icon Anthony O'Dowd
View More author details

Table of Contents (20) Chapters

Title Page
Copyright and Credits
Packt Upsell
Foreword
Contributors
Preface
1. Blockchain - Enterprise and Industry Perspective 2. Exploring Hyperledger Fabric 3. Setting the Stage with a Business Scenario 4. Designing a Data and Transaction Model with Golang 5. Exposing Network Assets and Transactions 6. Business Networks 7. A Business Network Example 8. Agility in a Blockchain Network 9. Life in a Blockchain Network 10. Governance, Necessary Evil of Regulated Industries 11. Hyperledger Fabric Security 12. The Future of Blockchain and the Challenges Ahead 1. Other Books You May Enjoy Index

Logging output


Logging is a vital part of system code, enabling the analysis and detection of runtime problems.

Logging in Fabric is based on the standard Go logging package, github.com/op/go-logging. The logging mechanism provides severity-based control of logs and pretty-printing decoration of messages. The logging levels are defined in decreasing order of severity, as follows:

CRITICAL | ERROR | WARNING | NOTICE | INFO | DEBUG 

The log messages are combined from all components and written into the standard error file (stderr). Logging can be controlled by the configuration of peers and modules, as well as in the code of the chaincode.

Configuration

The default configuration of peer logging is set to the level INFO, but this level can be controlled in the following ways:

  1. A command line option logging level. This option overrides default configurations, shown as follows:
peer node start --logging-level=error  

Note that any module or chaincode can be configured through the command line option,...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}