zapLogger

package module
v0.0.0-...-b209fa1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZapTopicConfigEnable   = "APP_LOG_Enable"
	ZapTopicConfigEntries  = "APP_LOG_Entries"
	ZapTopicConfigProvider = "APP_LOG_%sProvider"
)

Variables

This section is empty.

Functions

func GetSinkURL

func GetSinkURL(prefix, provider string, _ log.Mode) (infoURL, redactedURL string, err error)

func RegisterSink

func RegisterSink(provider string, generator sinkURLGenerator)

func Setup

func Setup(pg ParamGetter)

func StringMeansTrue

func StringMeansTrue(text string) bool

Types

type CoreHijacker

type CoreHijacker interface {
	HijackCore(consoleEncoder, jsonEncoder zapcore.Encoder) zapcore.Core
}

type ParamGetter

type ParamGetter = func(string) (string, bool)

Jump to

Keyboard shortcuts

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