Add structured logging to ImageBuilder
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- csharp
- Bereich
- devops, observability-sre
Rechercherichtung
Beginne damit, den ImageBuilder-Einstiegspunkt zu finden und die aktuelle Verwendung von Microsoft.Extensions.Logging zu überprüfen. Untersuche anschließend, wie Pipeline-Jobs Artefakte veröffentlichen, und vergleiche die vorgeschlagenen Ansätze mit Serilog und NLog. Erledigt ist die Aufgabe, wenn eine prägnante Konsolenausgabe, ein strukturiertes JSON-Log pro Aufruf und ein hochgeladenes Log-Artefakt pro Pipeline-Job vorhanden sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Adding structured logging to ImageBuilder would allow us to analyze log outputs and operate on log data using jq or other tools.
I propose that we split ImageBuilder's logging into two components:
- High-level console logging that is concise (fits on ~one terminal screen) and easily parsable by humans and LLMs.
- Detailed structured logging in json that is output to a file and published as a pipeline artifact. One log per ImageBuilder invocation. Put each log file into one folder and upload one log artifact per pipeline job.
Microsoft.Extensions.Logging does not have file logging support natively. See https://github.com/dotnet/runtime/issues/59322. There are a couple libraries that can provide this functionality through M.E.Logging.Abstractions (using ILogger) - both are popular and in active development:
NLog version 6 fully supports Native AOT/trimming so I lean towards that one.
- Vorherrschende Sprache
- C#
- Sterne
- 181
- Forks
- 67
- Ø Merge
- 2 T. 58 Min.
- Gemergte PRs (30 T.)
- 16
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus dotnet/docker-tools
-
area-dockerfiles up-for-grabs
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
dotnet/docker-tools#2080 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area-infrastructure
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
dotnet/docker-tools#2240 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Rework container image rebuildsEvtl. wieder frei @lbussell hat das vor 85 Tagen übernommen, und es ist kein Pull Request offen. Offenarea-infrastructure
dotnet/docker-tools#2166 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
image-info.json's `commitUrl` is incorrect when manifest is not in repo rootEvtl. wieder frei @lbussell hat das vor 87 Tagen übernommen, und es ist kein Pull Request offen. Offenarea-infrastructure
dotnet/docker-tools#2165 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Use image annotations to split public and internal EOL lifecycle annotationsEvtl. wieder frei @lbussell hat das vor 80 Tagen übernommen, und es ist kein Pull Request offen. Offenarea-infrastructure
dotnet/docker-tools#2153 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in dotnet/docker-tools
Ähnliche Issues
-
area/navigationview 🧭 difficulty/starter 🚀 good first issue kind/bug platform/all project/navigation-lifecycle 🧬 triage/untriaged
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
unoplatform/uno#24925 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
DamianEdwards/ghcp-spend-tray#39 ·
Maintainer antworten meist innerhalb von 1 Tag
-
copilot documentation
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 2 Tagen
-
[Rust][Flaky Test] multiple_deadlines_fire_in_order asserts a wall-clock gap instead of firing orderOffenCI/CD ⚒️ Flaky-tests 🐦
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
valkey-io/valkey-glide#7255 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
bug good first issue
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
unoplatform/Uno.Core#99 ·