elastic / elastic/ecs-logging-python

Directly adding fields to json log when log has parameterized string

Đang mở
#44 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
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á.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.