log

package module
v0.0.0-...-efa9523 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

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

func Debugw

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

func Errorf

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

func Errorw

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

func GetLogID

func GetLogID(ip string) string

TODO: optimization could be done

func Infof

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

func Infow

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

func InitZapSugared

func InitZapSugared(global bool, production bool, skip int) *zap.SugaredLogger

func Warnf

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

func Warnw

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

Types

type Logger

type Logger interface {
	Infof(string, ...interface{})
	Warnf(string, ...interface{})
	Errorf(string, ...interface{})
	Debugf(string, ...interface{})
	Infow(string, ...interface{})
	Warnw(string, ...interface{})
	Errorw(string, ...interface{})
	Debugw(string, ...interface{})
}
var GlobalLogger Logger

Jump to

Keyboard shortcuts

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