log

package
v0.0.0-...-e5f8ed5 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

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

Debugf uses fmt.Sprintf to log a templated message.

func Debugw

func Debugw(template string, args ...interface{})

Debugw uses fmt.Sprintf to log a templated message.

func Error

func Error(args ...interface{})

Error uses fmt.Println to log a message

func Errorf

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

Errorf uses fmt.Sprintf to log a templated message.

func Errorw

func Errorw(template string, args ...interface{})

Errorw uses fmt.Sprintf to log a templated message.

func Fatalf

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

Fatalf uses fmt.Sprintf to log a templated message.

func Info

func Info(args ...interface{})

Info uses fmt.Println to log a message

func Infof

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

Infof uses fmt.Sprintf to log a templated message.

func Infow

func Infow(template string, args ...interface{})

Infow uses fmt.Sprintf to log a templated message.

func InitGlobalLogger

func InitGlobalLogger(loglevel config.LogLevel)

InitGlobalLogger creates a new SugaredLogger and assigns it as the global logger

func Panic

func Panic(args ...interface{})

Panic uses fmt.Println to log a message

func Panicf

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

Panicf uses fmt.Sprintf to log a templated message.

func Panicw

func Panicw(template string, args ...interface{})

Panicw uses fmt.Sprintf to log a templated message.

func SetGlobalLogger

func SetGlobalLogger(l *zap.SugaredLogger)

SetGlobalLogger takes a Logger instance as the input and sets it as the global logger, useful for testing.

func Sync

func Sync() error

Sync uses fmt.Sprintf to log a templated message.

func Warnf

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

Warnf uses fmt.Sprintf to log a templated message.

func Warnw

func Warnw(template string, args ...interface{})

Warnw uses fmt.Sprintf to log a templated message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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