package
1.4.2
Repository: https://github.com/go-logr/logr.git
Documentation: pkg.go.dev

# Packages

Package main is an example of using funcr.

# Functions

New returns a logr.Logger which is implemented by an arbitrary function.
NewFormatter constructs a Formatter which emits a JSON-like key=value format.
NewFormatterJSON constructs a Formatter which emits strict JSON.
NewJSON returns a logr.Logger which is implemented by an arbitrary function and produces JSON output.

# Constants

All considers all message classes.
Error only considers error messages.
Info only considers info messages.
None ignores all message classes.

# Structs

Caller represents the original call site for a log line, after considering logr.Logger.WithCallDepth and logr.Logger.WithCallStackHelper.
Formatter is an opaque struct which can be embedded in a LogSink implementation.
Options carries parameters which influence the way logs are generated.

# Interfaces

Underlier exposes access to the underlying logging function.

# Type aliases

MessageClass indicates which category or categories of messages to consider.
PseudoStruct is a list of key-value pairs that gets logged as a struct.