logger

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 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 Info

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

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 {
	// contains filtered or unexported fields
}
var (
	Log Logger
)

func Init

func Init(cfg *config.Config) (*Logger, error)

Jump to

Keyboard shortcuts

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