diff options
author | Mark Beierl <mark.beierl@dell.com> | 2017-07-20 20:47:30 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-07-20 20:47:30 +0000 |
commit | bc5aeb16806c5b38506a9d2054ec772ad96dc16e (patch) | |
tree | 82365a19a052447991648697462be79d8e7339db /docker/storperf-master/logging.json | |
parent | 75d55c811b035dd4752458ddbcb2ab3d8c055601 (diff) | |
parent | b934a2867e39ab27878bc2bbf06bdcaa6b740b88 (diff) |
Merge "Restore Proper Logging"
Diffstat (limited to 'docker/storperf-master/logging.json')
-rw-r--r-- | docker/storperf-master/logging.json | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/docker/storperf-master/logging.json b/docker/storperf-master/logging.json new file mode 100644 index 0000000..2a0bbce --- /dev/null +++ b/docker/storperf-master/logging.json @@ -0,0 +1,51 @@ +{ + "version": 1, + "disable_existing_loggers": false, + "formatters": { + "simple": { + "format": "%(asctime)s - %(threadName)s - %(name)s - %(levelname)s - %(message)s" + } + }, + + "handlers": { + "console": { + "class": "logging.StreamHandler", + "level": "DEBUG", + "formatter": "simple", + "stream": "ext://sys.stdout" + }, + + "file_handler": { + "class": "logging.handlers.RotatingFileHandler", + "level": "DEBUG", + "formatter": "simple", + "filename": "storperf.log", + "maxBytes": 10485760, + "backupCount": 20, + "encoding": "utf8" + }, + + "error_file_handler": { + "class": "logging.handlers.RotatingFileHandler", + "level": "ERROR", + "formatter": "simple", + "filename": "errors.log", + "maxBytes": 10485760, + "backupCount": 20, + "encoding": "utf8" + } + }, + + "loggers": { + "": { + "level": "INFO", + "handlers": ["console", "file_handler", "error_file_handler"] + }, + "storperf": { + "level": "DEBUG" + }, + "storperf.carbon.emitter": { + "level": "INFO" + } + } +} |