{"repo":"uber-go/zap","free":true,"listed":false,"github":"https://github.com/uber-go/zap","clone":"git clone https://github.com/uber-go/zap.git","description":"Blazing fast, structured, leveled logging in Go.","language":"Go","stars":24630,"topics":["golang","logging","structured-logging","zap"],"license":"MIT","category":"analytics","readme_excerpt":":zap: zap Blazing fast, structured, leveled logging in Go. [![GoDoc][doc-img]][doc] [![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] Installation go get -u go.uber.org/zap Note that zap only supports the two most recent minor versions of Go. Quick Start In contexts where performance is nice, but not critical, use the SugaredLogger . It's 4-10x faster than other structured logging packages and includes both structured and printf -style APIs. When performance and type safety are critical, use the Logger . It's even faster than the SugaredLogger and allocates far less, but it only supports structured logging. See the [documentation][doc] and FAQ for more details. Performance For applications that log in the hot path, reflection-based serialization and string formatting are prohibitively expensive &mdash; they're CPU-intensive and make many small allocations. Put differently, using encoding/json and fmt.Fprintf to log tons of interface{} s makes your application slow. Zap takes a different approach. It includes a reflection-free, zero-allocation JSON encoder, and the base Logger strives to avoid serialization overhead and allocations wherever possible. By building the high-level SugaredLogger on that foundation, zap lets users choose when they need to count every allocation and when they'd prefer a more familiar, loosely typed API. As measured by its own [benchmarking suite][], not only is zap more performant than comparable structured logging packages &mdash; it'","default_branch":null,"files":null,"tree":[],"storefront":"/r/uber-go","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/uber-go/zap/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."}