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
There are many existing instances of good logging in our repositories that you could choose from for this. However, i don't think examples alone will be able to fully demonstrate all of the necessary principles;
The following comment (modified from the initial description of #2025) is worth adding before the simple logger examples in
and in the top docstring of the logger module itself1:
"""
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).
I'm thinking we can just show a couple templates and a couple of the features of structlog.
The text was updated successfully, but these errors were encountered: