package
0.2.5
Repository: https://github.com/numaproj-labs/numaplane.git
Documentation: pkg.go.dev

# Functions

FromContext returns the logger in the context.
Get the standard NumaLogger with current Log Level - deep copy it in case user modifies it.
New returns a new NumaLogger with a logr.Logger instance with a default setup for zerolog, os.Stdout writer, and info level.
Refresh the Logger's LogLevel based on current config value.
SetBaseLogger is intended to be set once when application starts.
WithLogger returns a copy of parent context in which the value associated with logger key is the supplied logger.

# Constants

Log Level Mapping: | NumaLogger semantic | logr verbosity | zerolog | | ------------------- | --------------- | -------------- | | fatal | 1 | 4 | | error | error (NA) | 3 | | warn | 2 | 2 | | info | 3 | 1 | | debug | 4 | 0 | | verbose | 5 | -2 (custom) | */.
Log Level Mapping: | NumaLogger semantic | logr verbosity | zerolog | | ------------------- | --------------- | -------------- | | fatal | 1 | 4 | | error | error (NA) | 3 | | warn | 2 | 2 | | info | 3 | 1 | | debug | 4 | 0 | | verbose | 5 | -2 (custom) | */.
Log Level Mapping: | NumaLogger semantic | logr verbosity | zerolog | | ------------------- | --------------- | -------------- | | fatal | 1 | 4 | | error | error (NA) | 3 | | warn | 2 | 2 | | info | 3 | 1 | | debug | 4 | 0 | | verbose | 5 | -2 (custom) | */.
Log Level Mapping: | NumaLogger semantic | logr verbosity | zerolog | | ------------------- | --------------- | -------------- | | fatal | 1 | 4 | | error | error (NA) | 3 | | warn | 2 | 2 | | info | 3 | 1 | | debug | 4 | 0 | | verbose | 5 | -2 (custom) | */.
Log Level Mapping: | NumaLogger semantic | logr verbosity | zerolog | | ------------------- | --------------- | -------------- | | fatal | 1 | 4 | | error | error (NA) | 3 | | warn | 2 | 2 | | info | 3 | 1 | | debug | 4 | 0 | | verbose | 5 | -2 (custom) | */.

# Structs

LogSink implements logr.LogSink using zerolog as base logger.
NumaLogger is the struct containing a pointer to a logr.Logger instance.