log

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func New

func New(logLevel, logFormat string) (*Logger, error)

func (*Logger) Debug

func (log *Logger) Debug(msg string, fields ...zap.Field)

func (*Logger) Debugf

func (log *Logger) Debugf(template string, args ...interface{})

func (*Logger) Debugln

func (log *Logger) Debugln(args ...interface{})

func (*Logger) Error

func (log *Logger) Error(msg string, fields ...zap.Field)

func (*Logger) Errorf

func (log *Logger) Errorf(template string, args ...interface{})

func (*Logger) Errorln

func (log *Logger) Errorln(args ...interface{})

func (*Logger) Fatal

func (log *Logger) Fatal(args ...interface{})

func (*Logger) Fatalf

func (log *Logger) Fatalf(template string, args ...interface{})

func (*Logger) Fatalln

func (log *Logger) Fatalln(args ...interface{})

func (*Logger) Info

func (log *Logger) Info(msg string, fields ...zap.Field)

func (*Logger) Infof

func (log *Logger) Infof(template string, args ...interface{})

func (*Logger) Infoln

func (log *Logger) Infoln(args ...interface{})

func (*Logger) Panic

func (log *Logger) Panic(args ...interface{})

func (*Logger) Panicf

func (log *Logger) Panicf(template string, args ...interface{})

func (*Logger) Panicln

func (log *Logger) Panicln(args ...interface{})

func (*Logger) Print

func (log *Logger) Print(args ...interface{})

func (*Logger) Printf

func (log *Logger) Printf(template string, args ...interface{})

func (*Logger) Println

func (log *Logger) Println(args ...interface{})

func (*Logger) Warn

func (log *Logger) Warn(msg string, fields ...zap.Field)

func (*Logger) Warnf

func (log *Logger) Warnf(template string, args ...interface{})

func (*Logger) Warnln

func (log *Logger) Warnln(args ...interface{})

Jump to

Keyboard shortcuts

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