log

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableProductionLogging

func EnableProductionLogging(lvl zapcore.Level)

func Error

func Error(v ...interface{})

func Errorf

func Errorf(format string, v ...interface{})

func Fatal

func Fatal(v ...interface{})

func Fatalf

func Fatalf(format string, v ...interface{})

func Fatalln

func Fatalln(v ...interface{})

func Info

func Info(v ...interface{})

func Infof

func Infof(format string, v ...interface{})

func Level

func Level() zapcore.Level

func LevelHandler

func LevelHandler() http.Handler

func Panic

func Panic(v ...interface{})

func Panicf

func Panicf(format string, v ...interface{})

func Panicln

func Panicln(v ...interface{})

func Print

func Print(v ...interface{})

func Printf

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

func Println

func Println(v ...interface{})

func Warn

func Warn(v ...interface{})

func Warnf

func Warnf(format string, v ...interface{})

Types

type Fields

type Fields map[string]interface{}

type Logger

type Logger struct {
	*zap.SugaredLogger
}

func NewEntry

func NewEntry() Logger

func NewErrorOnlyLogger

func NewErrorOnlyLogger() Logger

func NewTestLogger

func NewTestLogger(t zaptest.TestingT) Logger

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{})

func (Logger) Warning

func (l Logger) Warning(v ...interface{})

func (Logger) Warningf

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

func (Logger) With

func (l Logger) With(v ...interface{}) Logger

func (Logger) WithOptions

func (l Logger) WithOptions(v ...zap.Option) Logger

Jump to

Keyboard shortcuts

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