{"repo":"samber/slog-multi","free":true,"listed":false,"github":"https://github.com/samber/slog-multi","clone":"git clone https://github.com/samber/slog-multi.git","description":"🚨 Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...","language":"Go","stars":633,"topics":["go","golang","slog","handler","log","log-level","logger","middleware","attribute","error"],"license":"MIT","category":"networking-infra","readme_excerpt":"slog-multi: Advanced Handler Composition for Go's Structured Logging (pipelining, fanout, routing, failover...) slog-multi provides advanced composition patterns for Go's structured logging ( slog ). It enables you to build sophisticated logging workflows by combining multiple handlers with different strategies for distribution, routing, transformation, and error handling. 🎯 Features - 🔄 Fanout : Distribute logs to multiple handlers in parallel - 🛣️ Router : Conditionally route logs based on custom criteria - 🎯 First Match : Route logs to the first matching handler only - 🔄 Failover : High-availability logging with automatic fallback - ⚖️ Load Balancing : Distribute load across multiple handlers - 🔗 Pipeline : Transform and filter logs with middleware chains - 🛡️ Error Recovery : Graceful handling of logging failures Middlewares: - ⚡ Inline Handlers : Quick implementation of custom handlers - 🔧 Inline Middleware : Rapid development of transformation logic Sponsored by: Cut Kubernetes & AI costs, boost application stability 100% OpenTelemetry-native observability platform Simple to use, built on open standards, and designed for full cost control See also: - slog-multi: slog.Handler chaining, fanout, routing, failover, load balancing... - slog-formatter: slog attribute formatting - slog-sampling: slog sampling policy - slog-mock: slog.Handler for test purposes HTTP middlewares: - slog-gin: Gin middleware for slog logger - slog-echo: Echo middleware for slog logger - slo","default_branch":null,"files":null,"tree":[],"storefront":"/r/samber","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/samber/slog-multi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}