version: 1
handlers:
  file:
    class: logging.handlers.TimedRotatingFileHandler
    formatter: normal
    filename: 'log/dexter.log'
    when: 'd'
formatters:
  normal:
    format: '%(asctime)s %(process)-6d %(name)-12s %(userid)s %(levelname)-8s %(message)s'
loggers:
  requests:
    level: INFO
  sqlalchemy.engine:
    level: WARN
root:
  handlers: [file]
  level: INFO

version: 1
handlers:
  file:
    class: logging.handlers.TimedRotatingFileHandler
    formatter: normal
    filename: 'log/dexter.log'
    when: 'd'
    filters: [userid]
filters:
  userid:
    (): dexter.logs.userIdFilterFactory
    class: dexter.logs.UserIdFilter
formatters:
  normal:
    format: '%(asctime)s %(process)-6d %(name)-12s %(userid)s %(levelname)-8s %(message)s'
loggers:
  requests:
    level: INFO
  sqlalchemy.engine:
    level: WARN
root:
  handlers: [file]
  level: INFO

Add missing filter in production log config
Add missing filter in production log config
