Commit 25185a5
committed
logging: Add
CPython allows specifying a list of handlers in the initialization of
logging with basicConfig(handlers=<iterable>). This adds similar support
to Micropython. It allows to initialize logging with a set of
specialized handlers.
Signed-off-by: Jared Hancock <[email protected]>handlers param to basicConfig.1 parent 6e24cff commit 25185a5
1 file changed
+15
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
| |||
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
238 | | - | |
| 239 | + | |
239 | 240 | | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
244 | 249 | | |
245 | | - | |
246 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
247 | 253 | | |
248 | | - | |
249 | | - | |
| 254 | + | |
250 | 255 | | |
| 256 | + | |
251 | 257 | | |
252 | 258 | | |
253 | 259 | | |
0 commit comments