normal logging mode

未关闭
#623 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
observability

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
1.9k
派生
205
平均合并
2 小时 2 分钟
30 天内合并 PR
1

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

faust-streaming/faust 的其他 Issue

查看 faust-streaming/faust 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。