logger

package
v0.0.0-...-bbe9989 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeZapLogLevel

func MakeZapLogLevel(logLevel string) (zapcore.Level, error)

Types

type LogConfig

type LogConfig struct {
	Level string `required:"true" envconfig:"cos_proxy_env_log_level"`
}

func GetConfig

func GetConfig() *LogConfig

type Logger

type Logger struct {
	*zap.Logger
	ZapLogLevel zapcore.Level
}

func GetLogger

func GetLogger() *Logger

func NewLogger

func NewLogger(logLevel string) (*Logger, error)

func (*Logger) Print

func (l *Logger) Print(v ...interface{})

func (*Logger) Printf

func (l *Logger) Printf(format string, v ...interface{})

func (*Logger) Println

func (l *Logger) Println(v ...interface{})

Jump to

Keyboard shortcuts

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