normal logging mode

Offen
#623 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
observability

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Python
Sterne
1.9k
Forks
205
Ø Merge
2 Std. 2 Min.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus faust-streaming/faust

Alle Issues in faust-streaming/faust

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.