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 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址