aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSchmalzried, Terry (ts862m) <ts862m@att.com>2019-11-13 16:47:45 -0500
committerSchmalzried, Terry (ts862m) <ts862m@att.com>2019-11-14 15:40:57 -0500
commit05f475fb6ec2c4a1acd2698d29a4c12b116a1d36 (patch)
tree0d834d29a6d78fe678904be5655d76fe9913b2b8 /etc
parent8dc742e747e0f418665ab9422f5c6c2cda94869b (diff)
DCAEGEN2-1919 add HTTPS and change log rotation
Change-Id: I7859dde9460620e18edca887f5dfc611639b268c Issue-ID: DCAEGEN2-1919 Signed-off-by: Schmalzried, Terry (ts862m) <ts862m@att.com>
Diffstat (limited to 'etc')
-rw-r--r--etc/common_logger.config8
-rw-r--r--etc/config.json9
2 files changed, 8 insertions, 9 deletions
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
+}