logger

package
v0.0.0-...-6f746f0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

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

Errorf calls sugared.Errorf if present, else calls log.Println

func Info

func Info(msg string, v ...interface{})

Info calls sugared.Info if present, else calls log.Println

func Infof

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

Infof calls sugared.Infof if present, else calls log.Println

func Init

func Init() (err error)

Init initialize log and sugaredLog For now, let's use zap Development mode

func PlainInfo

func PlainInfo(msg string, fields ...zap.Field)

PlainInfo calls plain.Info if present, else calls log.Println

func Sync

func Sync() error

Sync calls plain.Sync()

func Warnf

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

Warnf calls sugared.Infof if present, else calls log.Println

Types

This section is empty.

Jump to

Keyboard shortcuts

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