From b934a2867e39ab27878bc2bbf06bdcaa6b740b88 Mon Sep 17 00:00:00 2001 From: mbeierl Date: Thu, 20 Jul 2017 15:54:40 -0400 Subject: 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 --- docker/storperf-master/logging.json | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 docker/storperf-master/logging.json (limited to 'docker/storperf-master/logging.json') 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" + } + } +} -- cgit 1.2.3-korg