Skip to content

Commit

Permalink
Add more details to logging specification examples
Browse files Browse the repository at this point in the history
Signed-off-by: pama-ibm <pama@ibm.com>
(cherry picked from commit eec9341)
  • Loading branch information
pamandrejko authored and denyeart committed Jan 6, 2021
1 parent 7b1dbf1 commit 91d9621
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/source/logging-control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ syntax. Examples of specifications:
warning:msp,gossip=warning:chaincode=info - Default WARNING; Override for msp, gossip, and chaincode
chaincode=info:msp,gossip=warning:warning - Same as above

.. note:: Logging specification terms are separated by a colon. If a term does not include a specific logger, for example `info:` then it is applied as the default log level
across all loggers on the component. The string `info:dockercontroller,endorser,chaincode,chaincode.platform=debug` sets
the default log level to `INFO` for all loggers and then the `dockercontroller`, `endorser`, `chaincode`, and
`chaincode.platform` loggers are set to `DEBUG`. The order of the terms does not matter. In the examples above,
the second and third options produce the same result although the order of the terms is reversed.

Logging format
--------------

Expand Down Expand Up @@ -119,4 +125,3 @@ chaincode container using standard commands for your container platform.

.. Licensed under Creative Commons Attribution 4.0 International License
https://creativecommons.org/licenses/by/4.0/

0 comments on commit 91d9621

Please sign in to comment.