logger

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, tags ...zap.Field)

func DebugJSON

func DebugJSON(msg interface{}, tags ...zap.Field)

func Error

func Error(err error, tags ...zap.Field)

func Field

func Field(key string, value interface{}) zap.Field

func GetTestLogger added in v0.5.0

func GetTestLogger() *zap.Logger

func Info

func Info(msg string, tags ...zap.Field)

func Init

func Init(cfg *config.Config) error

func InitTest added in v0.5.0

func InitTest()

func Warn

func Warn(msg string, tags ...zap.Field)

Types

type CronLogger

type CronLogger interface {
	// Info logs routine messages about cron's operation.
	Info(msg string, keysAndValues ...interface{})
	// Error logs an error condition.
	Error(err error, msg string, keysAndValues ...interface{})
	// Print prints message
	Print(v ...interface{})
	// Printf prints formatted message
	Printf(format string, v ...interface{})
}

func NewCronLogger

func NewCronLogger() CronLogger

type Logger

type Logger struct {
	*zap.Logger
}
var (
	Log Logger
)

Jump to

Keyboard shortcuts

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