logr

(โ˜… 1,399)

A simple logging interface for Go

  • .golangci.yaml
  • CHANGELOG.md
  • context.go
  • context_noslog.go
  • context_slog.go
  • context_slog_test.go
  • context_test.go
  • CONTRIBUTING.md
  • discard.go
  • discard_test.go
  • example_marshaler_secret_test.go
  • example_marshaler_test.go
  • example_slogr_test.go
  • example_test.go
  • go.mod
  • LICENSE
  • logr.go
  • logr_test.go
  • README.md
  • SECURITY.md
  • sloghandler.go
  • slogr.go
  • slogr_test.go
  • slogsink.go
  • testimpls_slog_test.go
  • testimpls_test.go

# Installation Guide

1. Get the code
git clone https://github.com/go-logr/logr

Downloads the entire project code from GitHub to your computer.

cd logr

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.
cd _tools

This project's files live in a subfolder, so move into it first.

go build ./...

Compiles the Go program into an executable.

go run .

Runs the Go program directly without a separate build step.

โœ… If the build finishes without errors, it worked. If you used go run ., check the terminal output.
// repository documentation