You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _delphi_utils_python/README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,13 +22,22 @@ Source code can be found here:
22
22
23
23
## Logger Usage
24
24
25
+
To make our structured logging as useful as it can be, particularly within the context of how we use logs in Elastic, the `event` argument (typically the first unnamed arg) should be a static string (to make filtering easier), and each dynamic/varying value should be specified in an individual meaningfully- and consistently-named argument to the logger call (for use in filtering, thresholding, grouping, visualization, etc).
26
+
27
+
### Commonly used argument names:
28
+
- data_source
29
+
- geo_type
30
+
- signal
31
+
- issue_date
32
+
- filename
33
+
25
34
Single-thread usage.
26
35
27
36
```py
28
37
from delphi_utils.logger import get_structured_logger
0 commit comments