| 1 | [loggers] |
|---|
| 2 | keys=root,log02,log03,log04,log05,log06,log07 |
|---|
| 3 | |
|---|
| 4 | [handlers] |
|---|
| 5 | keys=hand01,hand02,hand03,hand04,hand05,hand06,hand07,hand08,hand09 |
|---|
| 6 | |
|---|
| 7 | [formatters] |
|---|
| 8 | keys=form01,form02,form03,form04,form05,form06,form07,form08,form09 |
|---|
| 9 | |
|---|
| 10 | [logger_root] |
|---|
| 11 | level=NOTSET |
|---|
| 12 | propagate=1 |
|---|
| 13 | channel= |
|---|
| 14 | parent= |
|---|
| 15 | qualname=(root) |
|---|
| 16 | handlers=hand01 |
|---|
| 17 | |
|---|
| 18 | [logger_log02] |
|---|
| 19 | level=DEBUG |
|---|
| 20 | propagate=1 |
|---|
| 21 | channel=log02 |
|---|
| 22 | parent=(root) |
|---|
| 23 | qualname=log02 |
|---|
| 24 | handlers=hand02 |
|---|
| 25 | |
|---|
| 26 | [logger_log03] |
|---|
| 27 | level=INFO |
|---|
| 28 | propagate=1 |
|---|
| 29 | channel=log03 |
|---|
| 30 | parent=log02 |
|---|
| 31 | qualname=log02.log03 |
|---|
| 32 | handlers=hand03 |
|---|
| 33 | |
|---|
| 34 | [logger_log04] |
|---|
| 35 | level=WARN |
|---|
| 36 | propagate=0 |
|---|
| 37 | channel=log04 |
|---|
| 38 | parent=log03 |
|---|
| 39 | qualname=log02.log03.log04 |
|---|
| 40 | handlers=hand04 |
|---|
| 41 | |
|---|
| 42 | [logger_log05] |
|---|
| 43 | level=ERROR |
|---|
| 44 | propagate=1 |
|---|
| 45 | channel=log05 |
|---|
| 46 | parent=log04 |
|---|
| 47 | qualname=log02.log03.log04.log05 |
|---|
| 48 | handlers=hand05 |
|---|
| 49 | |
|---|
| 50 | [logger_log06] |
|---|
| 51 | level=CRITICAL |
|---|
| 52 | propagate=1 |
|---|
| 53 | channel=log06 |
|---|
| 54 | parent=log05 |
|---|
| 55 | qualname=log02.log03.log04.log05.log06 |
|---|
| 56 | handlers=hand06 |
|---|
| 57 | |
|---|
| 58 | [logger_log07] |
|---|
| 59 | level=WARN |
|---|
| 60 | propagate=1 |
|---|
| 61 | channel=log07 |
|---|
| 62 | parent=log06 |
|---|
| 63 | qualname=log02.log03.log04.log05.log06.log07 |
|---|
| 64 | handlers=hand07 |
|---|
| 65 | |
|---|
| 66 | [handler_hand01] |
|---|
| 67 | class=StreamHandler |
|---|
| 68 | level=NOTSET |
|---|
| 69 | formatter=form01 |
|---|
| 70 | stream=sys.stdout |
|---|
| 71 | args=(sys.stdout,) |
|---|
| 72 | |
|---|
| 73 | [handler_hand02] |
|---|
| 74 | class=FileHandler |
|---|
| 75 | level=DEBUG |
|---|
| 76 | formatter=form02 |
|---|
| 77 | filename=python.log |
|---|
| 78 | mode=w |
|---|
| 79 | args=('python.log', 'w') |
|---|
| 80 | |
|---|
| 81 | [handler_hand03] |
|---|
| 82 | class=handlers.SocketHandler |
|---|
| 83 | level=INFO |
|---|
| 84 | formatter=form03 |
|---|
| 85 | host=localhost |
|---|
| 86 | port=handlers.DEFAULT_TCP_LOGGING_PORT |
|---|
| 87 | args=('localhost', handlers.DEFAULT_TCP_LOGGING_PORT) |
|---|
| 88 | |
|---|
| 89 | [handler_hand04] |
|---|
| 90 | class=handlers.DatagramHandler |
|---|
| 91 | level=WARN |
|---|
| 92 | formatter=form04 |
|---|
| 93 | host=localhost |
|---|
| 94 | port=handlers.DEFAULT_UDP_LOGGING_PORT |
|---|
| 95 | args=('localhost', handlers.DEFAULT_UDP_LOGGING_PORT) |
|---|
| 96 | |
|---|
| 97 | [handler_hand05] |
|---|
| 98 | class=handlers.SysLogHandler |
|---|
| 99 | level=ERROR |
|---|
| 100 | formatter=form05 |
|---|
| 101 | host=localhost |
|---|
| 102 | port=handlers.SYSLOG_UDP_PORT |
|---|
| 103 | facility=LOG_USER |
|---|
| 104 | args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER) |
|---|
| 105 | |
|---|
| 106 | [handler_hand06] |
|---|
| 107 | class=handlers.NTEventLogHandler |
|---|
| 108 | level=CRITICAL |
|---|
| 109 | formatter=form06 |
|---|
| 110 | appname=Python Application |
|---|
| 111 | dllname= |
|---|
| 112 | logtype=Application |
|---|
| 113 | args=('Python Application', '', 'Application') |
|---|
| 114 | |
|---|
| 115 | [handler_hand07] |
|---|
| 116 | class=handlers.SMTPHandler |
|---|
| 117 | level=WARN |
|---|
| 118 | formatter=form07 |
|---|
| 119 | host=localhost |
|---|
| 120 | port=25 |
|---|
| 121 | from=from@abc |
|---|
| 122 | to=user1@abc,user2@xyz |
|---|
| 123 | subject=Logger Subject |
|---|
| 124 | args=('localhost', 'from@abc', ['user1@abc', 'user2@xyz'], 'Logger Subject') |
|---|
| 125 | |
|---|
| 126 | [handler_hand08] |
|---|
| 127 | class=handlers.MemoryHandler |
|---|
| 128 | level=NOTSET |
|---|
| 129 | formatter=form08 |
|---|
| 130 | capacity=10 |
|---|
| 131 | flushlevel=ERROR |
|---|
| 132 | target= |
|---|
| 133 | args=(10, ERROR) |
|---|
| 134 | |
|---|
| 135 | [handler_hand09] |
|---|
| 136 | class=handlers.HTTPHandler |
|---|
| 137 | level=NOTSET |
|---|
| 138 | formatter=form09 |
|---|
| 139 | host=localhost |
|---|
| 140 | port=9022 |
|---|
| 141 | url=/log |
|---|
| 142 | method=GET |
|---|
| 143 | args=('localhost:9022', '/log', 'GET') |
|---|
| 144 | |
|---|
| 145 | [formatter_form01] |
|---|
| 146 | format=F1 %(asctime)s %(levelname)s %(message)s |
|---|
| 147 | datefmt= |
|---|
| 148 | |
|---|
| 149 | [formatter_form02] |
|---|
| 150 | format=F2 %(asctime)s %(pathname)s(%(lineno)d): %(levelname)s %(message)s |
|---|
| 151 | datefmt= |
|---|
| 152 | |
|---|
| 153 | [formatter_form03] |
|---|
| 154 | format=F3 %(asctime)s %(levelname)s %(message)s |
|---|
| 155 | datefmt= |
|---|
| 156 | |
|---|
| 157 | [formatter_form04] |
|---|
| 158 | format=%(asctime)s %(levelname)s %(message)s |
|---|
| 159 | datefmt= |
|---|
| 160 | |
|---|
| 161 | [formatter_form05] |
|---|
| 162 | format=F5 %(asctime)s %(levelname)s %(message)s |
|---|
| 163 | datefmt= |
|---|
| 164 | |
|---|
| 165 | [formatter_form06] |
|---|
| 166 | format=F6 %(asctime)s %(levelname)s %(message)s |
|---|
| 167 | datefmt= |
|---|
| 168 | |
|---|
| 169 | [formatter_form07] |
|---|
| 170 | format=F7 %(asctime)s %(levelname)s %(message)s |
|---|
| 171 | datefmt= |
|---|
| 172 | |
|---|
| 173 | [formatter_form08] |
|---|
| 174 | format=F8 %(asctime)s %(levelname)s %(message)s |
|---|
| 175 | datefmt= |
|---|
| 176 | |
|---|
| 177 | [formatter_form09] |
|---|
| 178 | format=F9 %(asctime)s %(levelname)s %(message)s |
|---|
| 179 | datefmt= |
|---|
| 180 | |
|---|