Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 1 | [loggers] |
| 2 | keys=root |
| 3 | |
| 4 | [handlers] |
| 5 | keys=trfhand,consoleHandler,audithand,metrichand,errhand,debughand |
| 6 | |
| 7 | [logger_root] |
| 8 | level=NOTSET |
| 9 | handlers=trfhand,consoleHandler,audithand,metrichand,errhand,debughand |
| 10 | |
| 11 | [handler_consoleHandler] |
| 12 | class=StreamHandler |
| 13 | level=NOTSET |
| 14 | formatter=generic |
| 15 | args=(sys.stdout,) |
| 16 | |
| 17 | [handler_trfhand] |
| 18 | class=handlers.TimedRotatingFileHandler |
| 19 | level=NOTSET |
| 20 | formatter=generic |
| 21 | args=('application.log','midnight', 1, 10) |
| 22 | |
| 23 | [handler_audithand] |
| 24 | class=handlers.TimedRotatingFileHandler |
| 25 | level=INFO |
| 26 | formatter=audit |
| 27 | args=('audit.log', 'midnight', 1, 10) |
| 28 | |
| 29 | [handler_metrichand] |
| 30 | class=handlers.TimedRotatingFileHandler |
| 31 | level=INFO |
| 32 | formatter=metric |
| 33 | args=('metric.log','midnight', 1, 10) |
| 34 | |
| 35 | [handler_errhand] |
| 36 | class=handlers.TimedRotatingFileHandler |
| 37 | level=ERROR |
| 38 | formatter=error |
| 39 | args=('error.log','midnight', 1, 10) |
| 40 | |
| 41 | [handler_debughand] |
| 42 | class=handlers.TimedRotatingFileHandler |
| 43 | level=DEBUG |
| 44 | formatter=generic |
| 45 | args=('debug.log','midnight', 1, 10) |
| 46 | |
| 47 | [formatters] |
| 48 | keys=generic,audit,metric,error |
| 49 | |
| 50 | [formatter_audit] |
| 51 | format=%(asctime)s|%(asctime)s|00000000-0000-0000-0000-000000000000||%(thread)d||Conductor|N/A|COMPLETE|200|sucessful||%(levelname)s|||0|%(module)s|||||||||%(name)s : [-] %(message)s |
| 52 | datefmt= |
| 53 | |
| 54 | [formatter_metric] |
| 55 | format=%(asctime)s|%(asctime)s|00000000-0000-0000-0000-000000000000||%(thread)d||Conductor|N/A|N/A|N/A|COMPLETE|200|sucessful||%(levelname)s|||0|%(module)s||||||||||%(name)s : [-] %(message)s |
| 56 | datefmt= |
| 57 | |
| 58 | [formatter_error] |
| 59 | format=%(asctime)s|00000000-0000-0000-0000-000000000000|%(thread)d|Conductor|N/A|N/A|N/A|ERROR|500|N/A|%(name)s : [-] %(message)s |
| 60 | datefmt= |
| 61 | |
| 62 | [formatter_generic] |
| 63 | format=%(asctime)s||%(thread)d|%(levelname)s|%(module)s|%(name)s: [-] %(message)s |
| 64 | datefmt= |
| 65 | |