elastic / elastic/ecs-logging-python
Directly adding fields to json log when log has parameterized string
Aperta
- Lingua principale
- Python
- Stelle
- 74
- Fork
- 33
- Merge medio
- 9h 3m
- PR unite (30g)
- 1
Descrizione
is something like this possible
example:
```
addItem='abcd'
logger.info(f"added todo item {addItem} to the todo list")
```
*note: or any way of adding parametrized string
log:
`{'name': 'app.routes.controller', 'msg': 'added todo item abcd to the todo list', 'args': (), 'levelname': 'INFO', 'levelno': 20, 'fields': {'addItem': 'abcd'}}`
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.