diff options
author | mbeierl <mark.beierl@dell.com> | 2017-07-20 15:54:40 -0400 |
---|---|---|
committer | mbeierl <mark.beierl@dell.com> | 2017-07-20 16:28:22 -0400 |
commit | b934a2867e39ab27878bc2bbf06bdcaa6b740b88 (patch) | |
tree | 7790c5895169fc598fe9143ef1bcd4e9d7aae20c /docker/storperf-master/logging.json | |
parent | d38c48bfcf75b8011057bbda19d5ee6652a0351b (diff) |
Restore Proper Logging
Puts the logging.json file back into the correct path so that
the rest_server.py initializes the logging system correctly.
Adds the missing 'TAG=latest' to the documentation.
Change-Id: Id9caba86f6470136a7fe128a2fe1fb520133fc0b
JIRA: STORPERF-191
Signed-off-by: mbeierl <mark.beierl@dell.com>
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" + } + } +} |