normal logging mode

Đang mở
#623 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
observability

Hướng nghiên cứu

The issue names no source files. Start from the log lines it quotes: the aiomonitor startup message with ANSI color codes and the table-style transport output, then find where Faust sets up its logger and formatter. An earlier --no-color option was removed, so check its history too. Done means a plain, uncolored, unformatted log mode that can be turned on, with a test confirming the output has no escape codes or table layout.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Checklist

  • I have included information about relevant versions
  • I have verified that the issue persists when using the master branch of Faust.

Steps to reproduce

Expected behavior

Actual behavior

Full traceback

Versions

  • Python version: 3.11.8
  • Faust version: 0.11.0
  • Operating system: Alpine Linux 3.19.1
  • Kafka version: NA
  • RocksDB version (if applicable): NA

Hello faust team.
I would like to ask for "normal" logging mode.
Currently the log messages are trying to look fancy, formatted into tables, colored, ... etc.
This looks good in console, but when you redirect logging into other logging facilty (e.g. rsyslog in docker) then it is very hard to read messages and find some usefull data in log stream.
E.g.

...
2024-04-10T16:11:48Z docker-desktop my_faust_app 191 my_faust_app - .(0l.(BƒaµS† v0.11.0.(0wqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk.(B 
2024-04-10T16:11:40Z docker-desktop my_faust_app 191 my_faust_app - [2024-04-10 16:11:40,894] [10] [INFO] .[37mStarting aiomonitor at telnet://127.0.0.1:50101 and http://127.0.0.1:20102 .[0m 
2024-04-10T16:11:48Z docker-desktop my_faust_app 191 my_faust_app - .(0x.(B transport   .(0x.(B [URL(<>), URL(<>)...]  .(0x.(B 
...

In some previous versions there was --no-color command line option, but it has gone.

Is it possible to add "normal" logging mode without any coloring and special formatting, better suitable for logging systems ?
I think the faust streaming apps are usually launched in background or packed into containers and such fancy logging is not enjoyed by users.

Ngôn ngữ chính
Python
Star
1.9k
Fork
205
Merge trung bình
2 giờ 2 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của faust-streaming/faust

Tất cả issue của faust-streaming/faust

Issue tương tự

Thêm issue về Python

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.