Skip to content

Config_Logging

Keith Sterling edited this page Aug 1, 2017 · 3 revisions

Logging Configuration

Program-Y using Python logging for all logging output. For a full description of how to specify logging configuration options see the Python Logging Documentation

The current logging file is as follows and is a good start which logs all output to /tmp/y-bot.log

version: 1
disable_existing_loggers: False

formatters:
  simple:
    format: '%(asctime)s  %(name)-10s %(levelname)-7s %(message)s'

handlers:
  file:
    class: logging.handlers.RotatingFileHandler
    formatter: simple
    filename: /tmp/y-bot.log

root:
  level: DEBUG
  handlers:
      - file
Clone this wiki locally