Commit 301de84
committed
Simplify logging setup
Why these changes are being introduced:
As a library that is installed by other applications, it is beneficial to
have this library logging follow the levels and handlers set by the calling
context. That said, it can also be helpful to set a level like INFO for the
calling context, but DEBUG for this library.
What we definitely want to avoid is this library setting up a handler and
outputting logs, only to have them duplicated in the calling context.
How this addresses that need:
* Remove setting up of handlers; rely on calling context for handlers
Side effects of this change:
* For local development logging statements will not show up without
some kind of manual logging.basicConfig() call or handler setup.
* For calling contexts Transmogrifier, pipeline lambdas, and TIM to show this
library's DEBUG logs, they will need to adjust their configure_logger() functions
to avoid filtering out loggers from different namespaces.
Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/TIMX-4271 parent 6a2d8c1 commit 301de84
3 files changed
Lines changed: 15 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
30 | 23 | | |
31 | 24 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
364 | 363 | | |
365 | 364 | | |
366 | 365 | | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
| 366 | + | |
| 367 | + | |
371 | 368 | | |
372 | 369 | | |
373 | 370 | | |
| |||
0 commit comments