github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/docs/reference/logging.md (about)

     1  # Logging
     2  
     3  Logging is highly configurable through the `burrow.toml` `[logging]` section. Each log line is a list of key-value pairs that flows from the root sink through possible child sinks. 
     4  Each sink can have an output, a transform, and sinks that it outputs to. Below is a more involved example than the one appearing in the default generated config of what you can configure:
     5  
     6  ```toml
     7  # This is a top level config section within the main Burrow config
     8  [logging]
     9    # All log lines are sent to the root sink from all sources
    10    [logging.root_sink]
    11      # We define two child sinks that each receive all log lines
    12      [[logging.root_sink.sinks]]
    13        # We send all output to stderr
    14        [logging.root_sink.sinks.output]
    15          output_type = "stderr"
    16  
    17      [[logging.root_sink.sinks]]
    18        # But for the second sink we define a transform that filters log lines from Tendermint's p2p module
    19        [logging.root_sink.sinks.transform]
    20          transform_type = "filter"
    21          filter_mode = "exclude_when_all_match"
    22  
    23          [[logging.root_sink.sinks.transform.predicates]]
    24            key_regex = "module"
    25            value_regex = "p2p"
    26  
    27          [[logging.root_sink.sinks.transform.predicates]]
    28            key_regex = "captured_logging_source"
    29            value_regex = "tendermint_log15"
    30  
    31        # The child sinks of this filter transform sink are syslog and file and will omit log lines originating from p2p
    32        [[logging.root_sink.sinks.sinks]]
    33          [logging.root_sink.sinks.sinks.output]
    34            output_type = "syslog"
    35            url = ""
    36            tag = "Burrow-network"
    37  
    38        [[logging.root_sink.sinks.sinks]]
    39          [logging.root_sink.sinks.sinks.output]
    40            output_type = "file"
    41            path = "/var/log/burrow-network.log"
    42  ```