logger

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ZapTopicConfigEnable   = "Enable"
	ZapTopicConfigEntries  = "Entries"
	ZapTopicConfigProvider = "Provider"
)

Variables

This section is empty.

Functions

func New

func New(opts Options) (logger log.Logger, sync func(), err error)

func WordMeansTrue

func WordMeansTrue(text string) bool

Types

type Mode

type Mode uint8
const (
	ModeDevelop Mode = iota
	ModeTesting
	ModeProduct
)

func (Mode) Sting

func (m Mode) Sting() string

type Options

type Options struct {
	Mode          Mode
	ParamEntry    string
	ParamSepStr   string
	ParamStore    paramStore
	EncJSONOnProd bool
	// contains filtered or unexported fields
}

func (*Options) SelfCheck

func (o *Options) SelfCheck() error

func (*Options) WithTopic

func (o *Options) WithTopic(tg topicURLGenerator) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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