summaryrefslogtreecommitdiff
path: root/workshop_app/logs/emailconfig.yaml
blob: ab0fa3f9d50a999bf47e7c84030b1ea78d58c027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
version: 1
disable_existing_loggers: False

formatters:
  detailed:
    format: '%(asctime)s - %(levelname)s - Function: %(funcName)s() - Line: %(lineno)d -  %(message)s'

handlers:
    emaillogfile:
      level: INFO
      class: logging.handlers.RotatingFileHandler
      maxBytes: 10000000 #10MB
      backupCount: 9
      formatter: detailed
      filename: path/to/emailfile.log

root:
  level: INFO
  handlers:
    - emaillogfile