outputcore

package
v0.0.0-...-431bcb6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCore

func NewCore(
	output zapcore.WriteSyncer,
	level zapcore.LevelEnabler,
	format output.Format,
	sampling zap.SamplingConfig,
	overrides []Override,
	development bool,
) zapcore.Core

Types

type Override

type Override struct {
	// Scope matches any zapcore.Entry with the name Scope or the prefix Scope + ".".
	Scope string
	// Level is the level to log at for zapcore.Entry's that match Scope.
	Level zapcore.Level
}

Override allows adjusting the log level for specific scopes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL