logger

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustGetLogger

func MustGetLogger(config *LoggerConfig) *zap.Logger

Types

type LoggerConfig

type LoggerConfig struct {
	Format        string `mapstructure:"format" json:"format" yaml:"format"`
	ServiceName   string `mapstructure:"service-name" json:"serviceName" yaml:"service-name"`
	Level         string `mapstructure:"level" json:"level" yaml:"level"`
	DisableCaller bool   `mapstructure:"disable-caller" json:"disableCaller" yaml:"disable-caller"`
	Development   bool   `mapstructure:"development" json:"development" yaml:"development"`
}

Jump to

Keyboard shortcuts

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