zerolog

(β˜… 12,492)

Zero Allocation JSON Logger

  • .gitignore
  • array.go
  • array_test.go
  • benchmark_test.go
  • binary_test.go
  • console.go
  • console_test.go
  • context.go
  • context_test.go
  • CONTRIBUTING.md
  • ctx.go
  • ctx_test.go
  • encoder.go
  • encoder_cbor.go
  • encoder_json.go
  • error_marshal_test.go
  • event.go
  • event_test.go
  • example.jsonl
  • fields.go
  • fixtures_test.go
  • globals.go
  • globals_118.go
  • go.mod
  • go.sum
  • go112.go
  • hook.go
  • hook_test.go
  • LICENSE
  • log.go
  • log_example_test.go
  • log_test.go
  • not_go112.go
  • pretty.png
  • README.md
  • sampler.go
  • sampler_test.go
  • slog.go
  • slog_test.go
  • syslog.go
  • syslog_test.go
  • writer.go
  • writer_test.go

# Installation Guide

1. Get the code
git clone https://github.com/rs/zerolog

Downloads the entire project code from GitHub to your computer.

cd zerolog

Moves into the project folder you just downloaded.

2. Go

Medium Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Go The Go compiler and toolchain.
go build -tags binary_log .

Compiles the Go program into an executable.

βœ… If the build finishes without errors, it worked. If you used go run ., check the terminal output.

Pulled directly from this repo's README.

// repository documentation