logger

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf added in v1.5.0

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

Debugf logs a message at DebugLevel.

func Default added in v1.6.0

func Default(debug ...bool) log.Logger

Default the default logger instance

func EnableDebug

func EnableDebug()

EnableDebug enables the development model for logging. Deprecated

func Errorf added in v1.5.0

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

Errorf logs a message at ErrorLevel.

func Infof added in v1.5.0

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

Infof logs a message at InfoLevel.

func New added in v1.6.0

func New(opts ...zap.Option) log.Logger

New create new logger instance

func Printf

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

Printf prints a formated message without a specified level.

func SetLogger added in v1.8.1

func SetLogger(l log.Logger)

SetLogger allows developers to customize the logger instance.

func Warnf added in v1.5.0

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

Warnf logs a message at WarnLevel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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