From 05f475fb6ec2c4a1acd2698d29a4c12b116a1d36 Mon Sep 17 00:00:00 2001 From: "Schmalzried, Terry (ts862m)" Date: Wed, 13 Nov 2019 16:47:45 -0500 Subject: DCAEGEN2-1919 add HTTPS and change log rotation Change-Id: I7859dde9460620e18edca887f5dfc611639b268c Issue-ID: DCAEGEN2-1919 Signed-off-by: Schmalzried, Terry (ts862m) --- etc/common_logger.config | 8 ++++---- etc/config.json | 9 ++++----- 2 files changed, 8 insertions(+), 9 deletions(-) (limited to 'etc') diff --git a/etc/common_logger.config b/etc/common_logger.config index fb625bb..e26a485 100644 --- a/etc/common_logger.config +++ b/etc/common_logger.config @@ -1,5 +1,5 @@ # ================================================================================ -# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,11 +31,11 @@ # sizeMaxBytes: >= 0 (0 means no limit, else maximum filesize in Bytes) # backupCount: >= 0 (Number of rotated backup files to retain. If rotateMethod=time, 0 retains *all* backups. If rotateMethod=size, 0 retains *no* backups.) # -rotateMethod = time +rotateMethod = size timeRotateIntervalType = midnight timeRotateInterval = 1 -sizeMaxBytes = 0 -backupCount = 6 +sizeMaxBytes = 10000000 +backupCount = 4 #--- Parameters that define log filenames and their initial LogLevel threshold diff --git a/etc/config.json b/etc/config.json index b6f997b..1868386 100644 --- a/etc/config.json +++ b/etc/config.json @@ -21,13 +21,12 @@ }, "handlers": { "file": { - "class": "logging.handlers.TimedRotatingFileHandler", + "class": "logging.handlers.RotatingFileHandler", "formatter": "local", "filename" : "logs/policy_handler.log", "level": "DEBUG", - "when": "midnight", - "interval": 1, - "backupCount": 10, + "maxBytes": 200000000, + "backupCount": 5, "delay": true } }, @@ -41,4 +40,4 @@ "handlers": ["file"] } } -} \ No newline at end of file +} -- cgit 1.2.3-korg