elastic / elastic/ecs-logging-python
Directly adding fields to json log when log has parameterized string
Đang mở
- Ngôn ngữ chính
- Python
- Star
- 74
- Fork
- 33
- Merge trung bình
- 9 giờ 3 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
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'}}`
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.