The zerolog package provides a fast and simple logger dedicated to JSON output. Zerolog's API is designed to provide both a great developer experience and stunning performance. Its unique chaining API allows zerolog to write JSON (or CBOR) log events by avoiding allocations and reflection. Uber's zap library pioneered this approach. Zerolog is taking this concept to the next level with a simpler-to-use API and even better performance. To keep the code base and the API simple, zerolog focuses on efficient structured logging only. Pretty logging on the console is made possible using the provided (but inefficient) zerolog.ConsoleWriter.

Features

  • Blazing fast
  • Low to zero allocation
  • Leveled logging
  • context.Context integration
  • JSON and CBOR encoding formats
  • Pretty logging for development

Project Samples

Project Activity

See All Activity >

Categories

JSON

License

MIT License

Follow Zero Allocation JSON Logger

Zero Allocation JSON Logger Web Site

Other Useful Business Software
Auth0 for AI Agents now in GA Icon
Auth0 for AI Agents now in GA

Ready to implement AI with confidence (without sacrificing security)?

Connect your AI agents to apps and data more securely, give users control over the actions AI agents can perform and the data they can access, and enable human confirmation for critical agent actions.
Start building today
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Zero Allocation JSON Logger!

Additional Project Details

Programming Language

Go

Related Categories

Go JSON Software

Registered

2023-10-06