diff options
Diffstat (limited to 'workshop_app/logs')
-rwxr-xr-x | workshop_app/logs/emailconfig.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
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 |