Commit b808b1a
authored
feat: add support for logger inheritance (#99)
* chore: uppercase env var log level value
Signed-off-by: heitorlessa <[email protected]>
* feat: add keys to existing formatter
Signed-off-by: heitorlessa <[email protected]>
* chore: remove duplicate parameters docstring
Signed-off-by: heitorlessa <[email protected]>
* feat: add name parameter
Signed-off-by: heitorlessa <[email protected]>
* feat: support logging inheritance
* chore: spelling
Signed-off-by: heitorlessa <[email protected]>
* improv: make handler prop private
Signed-off-by: heitorlessa <[email protected]>
* feat: fetch random logger; remove dead loc
* improv: cover child logger independence
* improv: addresses nico feedback on missing test
Signed-off-by: heitorlessa <[email protected]>
* fix: docstring name parameter short description
Signed-off-by: heitorlessa <[email protected]>
* improv: logger inheritance via child param
Signed-off-by: heitorlessa <[email protected]>
* improv: update tests
Signed-off-by: heitorlessa <[email protected]>
* improv: logger test utility no longer necessary
Signed-off-by: heitorlessa <[email protected]>
* improv: make test name more descriptive
Signed-off-by: heitorlessa <[email protected]>
* fix: remove logger utility as it's no longer used
Signed-off-by: heitorlessa <[email protected]>
* fix: address feedback on consistency
Signed-off-by: heitorlessa <[email protected]>
* improv: turn log_level input case insensitive
* chore: add unreleased changes to Logger
* docs: adds reusing logger across your code section
Documents new Logger feature to support logging inheritance using the new `child` parameter.1 parent 40972d2 commit b808b1a
File tree
6 files changed
+191
-77
lines changed- aws_lambda_powertools/logging
- docs/content/core
- tests/functional
6 files changed
+191
-77
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
83 | | - | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
121 | | - | |
122 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
123 | 125 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
128 | 181 | | |
129 | 182 | | |
130 | 183 | | |
| |||
134 | 187 | | |
135 | 188 | | |
136 | 189 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | 190 | | |
142 | | - | |
| 191 | + | |
143 | 192 | | |
144 | 193 | | |
145 | 194 | | |
| |||
216 | 265 | | |
217 | 266 | | |
218 | 267 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 268 | | |
225 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
226 | 278 | | |
227 | 279 | | |
228 | 280 | | |
229 | 281 | | |
230 | 282 | | |
231 | 283 | | |
232 | 284 | | |
233 | | - | |
| 285 | + | |
234 | 286 | | |
235 | 287 | | |
236 | 288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
186 | 221 | | |
187 | 222 | | |
188 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 15 | | |
34 | | - | |
| 16 | + | |
35 | 17 | | |
36 | 18 | | |
37 | 19 | | |
| |||
55 | 37 | | |
56 | 38 | | |
57 | 39 | | |
58 | | - | |
| 40 | + | |
59 | 41 | | |
60 | 42 | | |
61 | 43 | | |
| |||
69 | 51 | | |
70 | 52 | | |
71 | 53 | | |
72 | | - | |
| 54 | + | |
73 | 55 | | |
74 | 56 | | |
75 | 57 | | |
| |||
82 | 64 | | |
83 | 65 | | |
84 | 66 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 67 | + | |
90 | 68 | | |
91 | 69 | | |
92 | 70 | | |
| |||
97 | 75 | | |
98 | 76 | | |
99 | 77 | | |
100 | | - | |
| 78 | + | |
101 | 79 | | |
102 | 80 | | |
103 | 81 | | |
| |||
108 | 86 | | |
109 | 87 | | |
110 | 88 | | |
111 | | - | |
| 89 | + | |
112 | 90 | | |
113 | 91 | | |
114 | 92 | | |
| |||
0 commit comments