github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/validator/packaging/log_config.toml.example (about)

     1  #
     2  # Copyright 2017 Intel Corporation
     3  #
     4  # Licensed under the Apache License, Version 2.0 (the "License");
     5  # you may not use this file except in compliance with the License.
     6  # You may obtain a copy of the License at
     7  #
     8  #     http://www.apache.org/licenses/LICENSE-2.0
     9  #
    10  # Unless required by applicable law or agreed to in writing, software
    11  # distributed under the License is distributed on an "AS IS" BASIS,
    12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  # See the License for the specific language governing permissions and
    14  # limitations under the License.
    15  # ------------------------------------------------------------------------------
    16  
    17  version = 1
    18  disable_existing_loggers = false
    19  
    20  [formatters.simple]
    21  format = "[%(asctime)s.%(msecs)03d [%(threadName)s] %(module)s %(levelname)s] %(message)s"
    22  datefmt = "%H:%M:%S"
    23  
    24  [handlers.debug]
    25  level = "DEBUG"
    26  formatter = "simple"
    27  class = "logging.FileHandler"
    28  filename = "/var/log/sawtooth/validator-debug.log"
    29  
    30  [handlers.interconnect]
    31  level = "DEBUG"
    32  formatter = "simple"
    33  class = "logging.handlers.RotatingFileHandler"
    34  filename = "/var/log/sawtooth/interconnect.log"
    35  maxBytes = 5000000
    36  backupCount=20
    37  
    38  [handlers.error]
    39  level = "ERROR"
    40  formatter = "simple"
    41  class = "logging.FileHandler"
    42  filename = "/var/log/sawtooth/validator-error.log"
    43  
    44  [loggers."sawtooth_validator.networking.interconnect"]
    45  level = "DEBUG"
    46  propagate = true
    47  handlers = [ "interconnect"]
    48  
    49  [root]
    50  level = "DEBUG"
    51  handlers = [ "error", "debug"]