Skip to content

Commit

Permalink
Extend logging doc with typical examples (#4086)
Browse files Browse the repository at this point in the history
Add typical logging levels to logging doc to assist with troubleshooting.

Signed-off-by: David Enyeart <enyeart@us.ibm.com>
(cherry picked from commit 077776f)
  • Loading branch information
denyeart committed Mar 13, 2023
1 parent ee3982a commit ca71cd9
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/source/logging-control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,41 @@ a format string, such as the default
to print the logs in a human-readable console format. It can be also set to
``json`` to output logs in JSON format.

Typical debug levels
--------------------

This section provides some typical log levels to debug various areas of a peer node or ordering service node by setting the ``FABRIC_LOGGING_SPEC`` environment variable.

Peer smart contract debug:

::

FABRIC_LOGGING_SPEC=info:dockercontroller,endorser,chaincode,chaincode.platform=debug

Peer private data debug:

::

FABRIC_LOGGING_SPEC=info:kvledger,ledgerstorage,transientstore,pvtdatastorage,gossip.privdata=debug

Peer ledger and state database debug:

::

FABRIC_LOGGING_SPEC=info:kvledger,lockbasedtxmgr,ledgerstorage,stateleveldb,statecouchdb,couchdb=debug

Peer full debug, with the noisy components set to info:

::

FABRIC_LOGGING_SPEC=debug:cauthdsl,policies,msp,grpc,peer.gossip.mcs,gossip,leveldbhelper=info

Ordering node full debug, with the noisy components set to info:

::

FABRIC_LOGGING_SPEC=debug:cauthdsl,policies,msp,grpc,orderer.consensus.etcdraft,orderer.common.cluster,orderer.common.cluster.step,common.configtx,blkstorage=info


Chaincode
---------
Expand Down

0 comments on commit ca71cd9

Please sign in to comment.