zerolog
Zero Allocation JSON Logger
File Explorer
Download Latest Version (.zip)- test.yml
- dependabot.yml
- go.mod
- go.sum
- lint.go
- README.md
- prettylog.go
- README.md
- many_to_one.go
- one_to_one.go
- poller.go
- README
- waiter.go
- diode.go
- diode_example_test.go
- diode_test.go
- LICENSE
- mutil.go
- writer_proxy.go
- hlog.go
- hlog_example_test.go
- hlog_test.go
- genLog.go
- makefile
- base.go
- base_test.go
- cbor.go
- decode_stream.go
- decoder_test.go
- README.md
- string.go
- string_test.go
- time.go
- time_test.go
- types.go
- types_64_test.go
- types_test.go
- base.go
- base_test.go
- bytes.go
- bytes_test.go
- float_test.go
- int_test.go
- string.go
- string_test.go
- time.go
- time_test.go
- types.go
- types_test.go
- testcases.go
- journald.go
- journald_test.go
- log.go
- log_example_test.go
- stacktrace.go
- stacktrace_test.go
- .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 RecommendedPrerequisites
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.
3. Make
MediumPrerequisites
- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
cd internal/cbor/examples
This project's files live in a subfolder, so move into it first.
make
Compiles the code based on the generated build configuration to produce an executable.
If it finishes without errors, it worked. Try running the generated executable directly.
// repository documentation
Was this content helpful?
(0 ratings)
