If you prefer, you can add extra fields to your logs dynamically, and not pre-defining them in the configuration.
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.
This way, you can allow different logs to have different extra fields.
See the following code example:
See the following code example:
```python
```python
@ -291,7 +292,7 @@ LOGGING = {
Please note that if you are using `python 3.8`, it is preferred to use the `logging.config.dictConfig` method, as mentioned in [python's documentation](https://docs.python.org/3/library/logging.config.html#configuration-file-format).
Please note that if you are using `python 3.8`, it is preferred to use the `logging.config.dictConfig` method, as mentioned in [python's documentation](https://docs.python.org/3/library/logging.config.html#configuration-file-format).
## Release Notes
## Release Notes
- 4.0.3
- 4.1.0
- Add ability to dynamically attach extra fields to the logs.
- Add ability to dynamically attach extra fields to the logs.
- Import opentelemetry logging dependency only if trace context is enabled and dependency is installed manually.
- Import opentelemetry logging dependency only if trace context is enabled and dependency is installed manually.