From d71e9d3e43ef06234564bd4113e8b5b769c63fe7 Mon Sep 17 00:00:00 2001 From: Ral G <39119258+ralongit@users.noreply.github.com> Date: Wed, 5 Jul 2023 15:59:10 +0300 Subject: [PATCH] Update README.md Co-authored-by: Miri Bar <37478344+mirii1994@users.noreply.github.com> --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5678eaf..a24e64c 100644 --- a/README.md +++ b/README.md @@ -165,7 +165,9 @@ For example: logger.info('Warning', extra={'extra_key':'extra_value'}) ``` #### Dynamic Extra Fields -The following additional code example offers the same functionlites that availavle with the extra parameter to add additional fields to logs. The difference is that it uses logging filters so it will add the fields that are declared key-values from the extra dictionary to every log that's generated after adding the fliter. You can keep updating the logs with additional filters. +If you prefer, you can add extra fields to your logs dynamically, and not pre-defining them in the configuration. +This way, you can allow different logs to have different extra fields. +See the following code example: ```python from logzio.handler import ExtraFieldsLogFilter