go_logger

package module
v0.0.0-...-9edcdf2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any(v interface{}) zap.Field

func Debug

func Debug(msg string, value interface{})

func Error

func Error(msg string, err error)

func ErrorV

func ErrorV(msg string, value interface{})

func Fatal

func Fatal(msg string, err error)

func FatalV

func FatalV(msg string, value interface{})

func Info

func Info(msg string, value interface{})

func NewErrorLog

func NewErrorLog(path string) *zap.Logger

NewErrorLog Warning, Error logger's pointer

func NewLogger

func NewLogger(path string) *zap.Logger

NewLogger correlated function

func Panic

func Panic(msg string, err error)

func PanicV

func PanicV(msg string, value interface{})

func SetFile

func SetFile(file string)

SetFile redirect log file's location

func Warn

func Warn(msg string, value interface{})

Types

type Logger

type Logger struct {
	Debug *zap.Logger
	Err   *zap.Logger
}
var Log Logger

Jump to

Keyboard shortcuts

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