Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 893 Bytes

GO_README.md

File metadata and controls

13 lines (8 loc) · 893 Bytes

rplog (go)

This document covers the Go implementation of rplog. For language-independent documentation, see the overall package documentation.

Usage:

This package provides an ordinary slog.Logger accessible via the Log() function. The first call to any function in this package will initialize the logger with the metadata fields described in the overall package documentation.

Either use the provided rplog.DebugContext, rplog.InfoContext, rplog.WarnContext, and rplog.ErrorContext functions to log, or access the slog.Logger directly via the rplog.Log() function. Traces will automatically be added to the log if a request_id is present in the context.

Use the provided `DebugContext`, `InfoContext`, `WarnContext`, and `ErrorContext` functions to log, or access the `slog.Logger` directly.

```go