Patrick Bellasi | c278c23 | 2016-11-22 14:40:28 +0000 | [diff] [blame] | 1 | |
| 2 | ################################################################################ |
| 3 | ### Root Logger |
| 4 | ################################################################################ |
| 5 | |
| 6 | [loggers] |
| 7 | keys=root |
| 8 | |
| 9 | [logger_root] |
| 10 | level=INFO |
| 11 | handlers=consoleHandler,fileHandler |
| 12 | propagate=0 |
| 13 | |
| 14 | ################################################################################ |
| 15 | ### Modules Logger |
| 16 | ################################################################################ |
| 17 | # To force a loglevel for a specific module you need to uncomment the relative |
| 18 | # section and add the logger name to the logger:keys list. |
| 19 | # |
| 20 | # For example, to enable debugging just for the TestEnv module, you need to |
| 21 | # uncomment the lovver_TestEnv section and set: |
| 22 | # [loggers] |
| 23 | # keys=root,TestEnv |
| 24 | # |
| 25 | # |
| 26 | # [logger_TestEnv] |
| 27 | # qualname=TestEnv |
| 28 | # level=DEBUG |
| 29 | # handlers=consoleHandler,fileHandler |
| 30 | # propagate=0 |
| 31 | # |
| 32 | # [logger_LisaTest] |
| 33 | # qualname=LisaTest |
| 34 | # level=DEBUG |
| 35 | # handlers=consoleHandler,fileHandler |
| 36 | # propagate=0 |
| 37 | # |
| 38 | # [logger_Executor] |
| 39 | # qualname=Executor |
| 40 | # level=DEBUG |
| 41 | # handlers=consoleHandler,fileHandler |
| 42 | # propagate=0 |
| 43 | # |
| 44 | # [logger_Workload] |
| 45 | # qualname=Workload |
| 46 | # level=DEBUG |
| 47 | # handlers=consoleHandler,fileHandler |
| 48 | # propagate=0 |
| 49 | # |
| 50 | # [logger_RTApp] |
| 51 | # qualname=RTApp |
| 52 | # level=DEBUG |
| 53 | # handlers=consoleHandler,fileHandler |
| 54 | # propagate=0 |
| 55 | |
| 56 | |
| 57 | ################################################################################ |
| 58 | ### Handlers |
| 59 | ################################################################################ |
| 60 | |
| 61 | [handlers] |
| 62 | keys=consoleHandler,fileHandler |
| 63 | |
| 64 | [handler_consoleHandler] |
| 65 | class=StreamHandler |
| 66 | level=DEBUG |
| 67 | formatter=simpleFormatter |
| 68 | args=(sys.stderr,) |
| 69 | |
| 70 | [handler_fileHandler] |
| 71 | class=FileHandler |
| 72 | level=DEBUG |
| 73 | formatter=simpleFormatter |
| 74 | args=("lisa.log",) |
| 75 | |
| 76 | |
| 77 | ################################################################################ |
| 78 | ### Format |
| 79 | ################################################################################ |
| 80 | |
| 81 | [formatters] |
| 82 | keys=simpleFormatter |
| 83 | |
| 84 | [formatter_simpleFormatter] |
| 85 | format=%(asctime)s %(levelname)-8s: %(name)-12s : %(message)s |
| 86 | datefmt= |
| 87 | |