logger

package
v0.0.0-...-0e42b2a Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLog

func InitLog() *zap.SugaredLogger

func Prefix

func Prefix() string

Types

type Logger

type Logger struct {
	Log *zap.SugaredLogger
}

func NewLogger

func NewLogger() Logger

func (Logger) Error

func (Logs Logger) Error(msg string)

func (Logger) ErrorW

func (Logs Logger) ErrorW(msg string, data interface{})

func (Logger) Fatal

func (Logs Logger) Fatal(msg string)

func (Logger) FatalW

func (Logs Logger) FatalW(msg string, data interface{})

func (Logger) Info

func (Logs Logger) Info(msg string)

only message

func (Logger) InfoW

func (Logs Logger) InfoW(msg string, data interface{})

with data

func (Logger) Panic

func (Logs Logger) Panic(msg string)

func (Logger) PanicW

func (Logs Logger) PanicW(msg string, data interface{})

func (Logger) Warning

func (Logs Logger) Warning(msg string)

func (Logger) WarningW

func (Logs Logger) WarningW(msg string, data interface{})

Jump to

Keyboard shortcuts

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