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