Feature request: Customizable log format

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

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
49/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
c
Bereich
observability

Rechercherichtung

Start by locating tinyproxy’s logging code and existing log format configuration; the issue does not name specific files or tests. Compare the current output with the requested timestamp and message layout, then identify how a configurable format could be specified. Done means users can customize the log format to produce output like the example.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Hi!

I find tinyproxy very helpful and it's a great project. I'm using it in alpine docker container. But I'm missing a feature. It would be awesome if the log format could be customized as it is the case for example by HAProxy or nginx.

The logging formatting is not the best imho and therefor my wishes would be as following:

Example lines:

CONNECT   May 19 12:02:58.509 [67]: Connect (file descriptor 4): 127.0.0.1
INFO      May 19 12:02:58.568 [67]: Not sending client headers to remote machine

Would like to have lines (or at least something like that):

[19/May/2026:12:02:58 +0000] tinyproxy[67]: CONNECT - Connect (file descriptor 4): 127.0.0.1
[19/May/2026:12:02:58 +0000] tinyproxy[67]: INFO - Not sending client headers to remote machine

I'm using tinyproxy from the alpine package repository version 1.11.2

Vorherrschende Sprache
C
Sterne
6.1k
Forks
768
Ø Merge
15 T. 3 Std.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

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 tinyproxy/tinyproxy

Alle Issues in tinyproxy/tinyproxy

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

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