{"repo":"willibrandon/mtlog","free":true,"listed":false,"github":"https://github.com/willibrandon/mtlog","clone":"git clone https://github.com/willibrandon/mtlog.git","description":"Serilog-inspired structured logging for Go with message templates, rich formatting, and native Seq support","language":"Go","stars":97,"topics":["go","logging","message-templates","seq","serilog","structured-logging","elasticsearch","splunk"],"license":"MIT","category":"analytics","readme_excerpt":"mtlog - Message Template Logging for Go mtlog is a high-performance structured logging library for Go, inspired by Serilog. It brings message templates and pipeline architecture to the Go ecosystem, achieving zero allocations for simple logging operations while providing powerful features for complex scenarios. Features Core Features - Zero-allocation logging for simple messages (17.3 ns/op) - Message templates with positional property extraction and format specifiers - Go template syntax support ( {{.Property}} ) alongside traditional syntax - OpenTelemetry compatibility with support for dotted property names ( {http.method} , {service.name} ) - Structured fields via With() method for slog-style key-value pairs - Output templates for customizable log formatting - Per-message sampling with multiple strategies (counter, rate, time, adaptive) for intelligent log volume control - ForType logging with automatic SourceContext from Go types and intelligent caching - LogContext scoped properties that flow through operation contexts - Source context enrichment with intelligent caching for automatic logger categorization - Context deadline awareness with automatic timeout warnings and deadline tracking - Pipeline architecture for clean separation of concerns - Type-safe generics for better compile-time safety - LogValue interface for safe logging of sensitive data - SelfLog diagnostics for debugging silent failures and configuration issues - Standard library compatibility via slog.Han","default_branch":null,"files":null,"tree":[],"storefront":"/r/willibrandon","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/willibrandon/mtlog/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."}