alex_sh | 9d980ce | 2017-08-23 17:30:56 -0400 | [diff] [blame] | 1 | { |
Alex Shatov | a5bfd6a | 2017-09-15 14:03:13 -0400 | [diff] [blame] | 2 | "version" : "1.0.0", |
alex_sh | 9d980ce | 2017-08-23 17:30:56 -0400 | [diff] [blame] | 3 | "wservice_port" : 25577, |
| 4 | "policy_handler" : { |
| 5 | "system" : "policy_handler" |
| 6 | }, |
| 7 | "logging" : { |
| 8 | "version": 1, |
| 9 | "disable_existing_loggers": false, |
| 10 | "formatters": { |
| 11 | "local": { |
| 12 | "format": "%(asctime)s.%(msecs)03d %(levelname)+8s %(threadName)s %(name)s.%(funcName)s: %(message)s", |
| 13 | "datefmt": "%Y%m%d_%H%M%S" |
| 14 | } |
| 15 | }, |
| 16 | "handlers": { |
| 17 | "file": { |
| 18 | "class": "logging.handlers.TimedRotatingFileHandler", |
| 19 | "formatter": "local", |
| 20 | "filename" : "logs/policy_handler.log", |
| 21 | "level": "DEBUG", |
| 22 | "when": "midnight", |
| 23 | "interval": 1, |
| 24 | "backupCount": 10, |
| 25 | "delay": true |
| 26 | } |
| 27 | }, |
| 28 | "loggers": { |
| 29 | "policy_handler" : { |
| 30 | "handlers": ["file"], |
| 31 | "propagate":false |
| 32 | } |
| 33 | }, |
| 34 | "root": { |
| 35 | "handlers": ["file"] |
| 36 | } |
| 37 | } |
| 38 | } |