diff --git a/Pipfile b/Pipfile index 961f33f..9e50b12 100644 --- a/Pipfile +++ b/Pipfile @@ -9,7 +9,7 @@ PyYAML = ">=5.4" gevent = "~=20.9.0" gunicorn = "~=19.9.0" Flask = "~=2.1.1" -logging-utilities = "~=2.0" +logging-utilities = "~=3.0" defusedxml = "~=0.7.1" boto3 = "~=1.17.60" botocore = "~=1.20.98" diff --git a/app/config/logging-cfg-local.yml b/app/config/logging-cfg-local.yml index 99978d6..eac6acd 100644 --- a/app/config/logging-cfg-local.yml +++ b/app/config/logging-cfg-local.yml @@ -43,12 +43,11 @@ filters: formatters: standard: - (): logging_utilities.formatters.extra_formatter.ExtraFormatter format: "[%(asctime)s] %(levelname)-8s - %(name)-26s : %(message)s" verbose: (): logging_utilities.formatters.extra_formatter.ExtraFormatter format: "[%(asctime)s] %(levelname)-8s - %(name)-26s : %(message)s" - extra_fmt: " : path=%(request_path)s headers=%(request_headers)s payload=%(request_form)s" + extra_fmt: " : path=%(flask_request_path)s headers=%(flask_request_headers)s payload=%(flask_request_form)s" json: (): logging_utilities.formatters.json_formatter.JsonFormatter add_always_extra: False @@ -58,7 +57,7 @@ formatters: - flask_request_method - flask_request_query_string - flask_request_headers - - flask_request_form + - flask_request_json - flask_request_remote_addr remove_empty: True ignore_missing: True @@ -75,12 +74,12 @@ formatters: path: "%(flask_request_path)s" method: "%(flask_request_method)s" queryString: "%(flask_request_query_string)s" - headers: "%(flask_request_headers)s" + headers: flask_request_headers. remoteAddr: "%(flask_request_remote_addr)s" payload: "%(flask_request_form).128s" response: statusCode: response.status_code - headers: response.headers + headers: response.headers. duration: "%(duration)s" payload: "%(response.json).128s" message: message