log

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	File          string                 `json:"file" yaml:"file"`
	Level         string                 `json:"level" yaml:"level"`
	Fields        map[string]interface{} `json:"fields" yaml:"fields"`
	EncoderConfig encoderConfig          `json:"encoderConfig,omitempty" yaml:"encoderConfig,omitempty"`
}

Configuration defines configuration for logging.

func (Configuration) BuildLogger

func (cfg Configuration) BuildLogger() (*zap.Logger, error)

BuildLogger builds a new Logger based on the configuration.

Jump to

Keyboard shortcuts

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