From f2f781686732ef7fd08c304fc83a202536b1ba1c Mon Sep 17 00:00:00 2001 From: Akshen Date: Sat, 7 Oct 2017 18:27:21 +0530 Subject: Adds Share Details and Logging - Coordinator can share details page with others - Logging feature added for emails --- workshop_app/logs/emailconfig.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 workshop_app/logs/emailconfig.yaml (limited to 'workshop_app/logs') diff --git a/workshop_app/logs/emailconfig.yaml b/workshop_app/logs/emailconfig.yaml new file mode 100755 index 0000000..ab0fa3f --- /dev/null +++ b/workshop_app/logs/emailconfig.yaml @@ -0,0 +1,20 @@ +version: 1 +disable_existing_loggers: False + +formatters: + detailed: + format: '%(asctime)s - %(levelname)s - Function: %(funcName)s() - Line: %(lineno)d - %(message)s' + +handlers: + emaillogfile: + level: INFO + class: logging.handlers.RotatingFileHandler + maxBytes: 10000000 #10MB + backupCount: 9 + formatter: detailed + filename: path/to/emailfile.log + +root: + level: INFO + handlers: + - emaillogfile -- cgit