Installation
Requirements
Section titled “Requirements”- Go 1.26 or later
github.com/Azure/go-workflow v0.1.13or later- An active Go module (
go.mod)
Install
Section titled “Install”Run this in your project directory:
go get github.com/larsartmann/go-workflow-auditlog@latestVerify Installation
Section titled “Verify Installation”go list -m github.com/larsartmann/go-workflow-auditlogQuick Usage
Section titled “Quick Usage”package main
import ( "context" "fmt"
flow "github.com/Azure/go-workflow"
"github.com/larsartmann/go-workflow-auditlog")
func main() { audit, _ := auditlog.New(auditlog.Config{ Enabled: true, WorkflowID: "my-pipeline", })
w := &flow.Workflow{} // add your steps...
audit.Attach(w) _ = w.Do(context.Background()) audit.Snapshot(w)
report := audit.Report() fmt.Println(report.Summary())}Next Steps
Section titled “Next Steps”- Follow the Quick Start for a complete pipeline example
- Learn about the Event Stream for per-attempt visibility
- See Export Formats for JSON, NDJSON, diagrams, and HTML